Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add missing XBT_ALWAYS_INLINE
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 12 Jan 2016 12:58:41 +0000 (13:58 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 12 Jan 2016 12:58:42 +0000 (13:58 +0100)
"Yes, you can be XBT_ALWAYS_INLINE too."

src/surf/surf_interface.hpp

index 1f2dba5..ea0d647 100644 (file)
@@ -43,7 +43,7 @@ namespace surf {
     {
       sig_.connect(sigc::ptr_fun(slot));
     }
-    template<class... Args>
+    template<class... Args> XBT_ALWAYS_INLINE
     R operator()(Args&&... args) const
     {
       return sig_.emit(std::forward<Args>(args)...);