A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use references for parameters of type std::function.
[simgrid.git]
/
include
/
simgrid
/
Exception.hpp
diff --git
a/include/simgrid/Exception.hpp
b/include/simgrid/Exception.hpp
index
0f3a5e3
..
08ccf09
100644
(file)
--- a/
include/simgrid/Exception.hpp
+++ b/
include/simgrid/Exception.hpp
@@
-197,7
+197,7
@@
public:
const char* what() const noexcept { return msg_.c_str(); }
static void do_throw();
const char* what() const noexcept { return msg_.c_str(); }
static void do_throw();
- static bool try_n_catch(
std::function<void(void)>
try_block);
+ static bool try_n_catch(
const std::function<void()>&
try_block);
private:
std::string msg_ = std::string("Actor killed.");
private:
std::string msg_ = std::string("Actor killed.");