Boost logo

Boost Users :

From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2004-11-19 12:24:59


Is it possible to use function_traits for functors that have been
created with bind?

I.e.:

template<Function>
foo (Function f) {
    typedef typename boost::function_traits<Function>::type fn_t;

    boost::signal<fn_t> sig;

}

....

foo(boost::bind(fobar, this, _1));

Apparently the above does not work, but I cannot figure out what I am
missing.

Roland


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