Boost C++ Libraries: Ticket #13385: Docs for for_each() should be clearer about forbidding "any non-constant operation" https://svn.boost.org/trac10/ticket/13385 <p> The docs for Range's (single-range) <code>for_each()</code> function specify the requirement: </p> <blockquote class="citation"> <p> UnaryFunction does not apply any non-constant operation through its argument. </p> </blockquote> <p> I think this wording could it be clearer. Does it mean that the it mustn't modify the value passed to it? If not, I think it would benefit from rewording. If so, isn't that quite different to <code>std::for_each()</code>. If that's deliberate, I suggest it's worth a brief note highlighting and justifying the difference. Otherwise, I suggest it's worth fixing. </p> <p> Thanks very much. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13385 Trac 1.4.3