
29 Mar
2007
29 Mar
'07
4:30 p.m.
Hendrik Belitz wrote:
I'd like to address a problem I just encountered on using mpl::for_each (Boost 1.33). Similar to Scott, I implemented a stateful functor that should be called for all types in a mpl::vector<>. for_each is no option, since it passes the functor by value
I slapped a boost::ref around the functor, and that worked fine for me. I suggest you try the same thing and see if that works for you. Scott