
29 Dec
2005
29 Dec
'05
4:15 p.m.
I have a situation where I need to be able to specify the type of object that will be created by an invocation of bind(): template<typename F> class Callback { public: Callback(F func) ... } template<typename F, typename Arg> class OneMoreArgCallback : public Callback<SOME_BIND_TYPE> { public: OneMoreArgCallback(F func, Arg arg) : Callback(boost::bind(func, arg, _1)) {}; } What's the best way to do this? typeof? -Dave