X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/48eccb2c1532e35819830ca56fad7cf89887359f..02dd785d0212ccd8376c2ce4fd931942232fcafb:/include/xbt/signal.hpp diff --git a/include/xbt/signal.hpp b/include/xbt/signal.hpp index 08fbff611a..508822cf2b 100644 --- a/include/xbt/signal.hpp +++ b/include/xbt/signal.hpp @@ -7,6 +7,7 @@ #define SIMGRID_XBT_SIGNAL_HPP #include +#include #include namespace simgrid { @@ -26,12 +27,11 @@ namespace xbt { typedef std::function callback_type; std::vector handlers_; public: - template XBT_ALWAYS_INLINE + template void connect(U slot) { handlers_.push_back(std::move(slot)); } - XBT_ALWAYS_INLINE R operator()(P... args) const { for (auto& handler : handlers_)