
28 Mar
2007
28 Mar
'07
5:17 a.m.
Having written code using a stateful functor with mpl::for_each and observing that side effects were not taking place, I went to http://www.boost.org/libs/mpl/doc/refmanual/refmanual_toc.html to confirm my suspicion that the functor was being passed by value. But there appears to be no documentation for mpl::for_each (neither in the HTML version of the reference manual nor in the PDF version). I ultimately confirmed my suspicion by looking at the header file, but is there a reason why for_each seems to be documented only in the printed book? Thanks, Scott