X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d2c2569a6b3d6a0a4ff772359351d0fdfa53551b..23f4a1521c0658ea2450c97e70616b6d04de97d7:/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_)