Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[cmake/java] copy all native libs in one shot to fix parallel build
[simgrid.git] / src / surf / surf_interface.hpp
index c49574d..ea0d647 100644 (file)
@@ -33,17 +33,17 @@ namespace surf {
   private:
     sigc::signal<R, P...> sig_;
   public:
-    template<class T> XBT_ALWAYS_INLINE
-    void connect(T&& slot)
+    template<class U> XBT_ALWAYS_INLINE
+    void connect(U&& slot)
     {
-      sig_.connect(std::forward<T>(slot));
+      sig_.connect(std::forward<U>(slot));
     }
     template<class Res, class... Args> XBT_ALWAYS_INLINE
     void connect(Res(*slot)(Args...))
     {
       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)...);