|
Boost Users : |
From: David A. Greene (greened_at_[hidden])
Date: 2005-12-29 11:15:03
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net