diff --git a/include/dynamic-graph/command-bind.h b/include/dynamic-graph/command-bind.h
index 47ecf1e1332576e502e3852ca539141057bb9505..a0ce2b84076539576245690f4810cb9daa844e6d 100644
--- a/include/dynamic-graph/command-bind.h
+++ b/include/dynamic-graph/command-bind.h
@@ -204,7 +204,7 @@ namespace dynamicgraph {
     template <class E,typename T1,typename T2 >
     CommandVoid2<E,T1,T2>*
       makeCommandVoid2(E& entity,
-		       typename CommandVoid2<E,T1,T2>::function_t function ,
+		       boost::function<void(const T1&,const T2&)> function,
 		       const std::string& docString)
       {
     	return new CommandVoid2<E,T1,T2>( entity,function,docString );