Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-04-05 13:05:04


Braddock Gaskill wrote:

> Is it possible to do a visit_each on a bind result assigned
> to a boost::function?
>
> boost::function<long (long, long)> func = bind(add, 7, 9);
> viistor v;
> visit_each(v, func);

I don't think that it's possible. boost::function<> erases the type of the
contained object in a manner that makes the above very hard, if not
impossible.


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