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
rework the smpirun manpage
[simgrid.git]
/
include
/
xbt
/
signal.hpp
diff --git
a/include/xbt/signal.hpp
b/include/xbt/signal.hpp
index
08fbff6
..
508822c
100644
(file)
--- a/
include/xbt/signal.hpp
+++ b/
include/xbt/signal.hpp
@@
-7,6
+7,7
@@
#define SIMGRID_XBT_SIGNAL_HPP
#include <functional>
#define SIMGRID_XBT_SIGNAL_HPP
#include <functional>
+#include <utility>
#include <vector>
namespace simgrid {
#include <vector>
namespace simgrid {
@@
-26,12
+27,11
@@
namespace xbt {
typedef std::function<R(P...)> callback_type;
std::vector<callback_type> handlers_;
public:
typedef std::function<R(P...)> callback_type;
std::vector<callback_type> handlers_;
public:
- template<class U>
XBT_ALWAYS_INLINE
+ template<class U>
void connect(U slot)
{
handlers_.push_back(std::move(slot));
}
void connect(U slot)
{
handlers_.push_back(std::move(slot));
}
- XBT_ALWAYS_INLINE
R operator()(P... args) const
{
for (auto& handler : handlers_)
R operator()(P... args) const
{
for (auto& handler : handlers_)