boost.lamda problems. want to increment a var inside an expression. is it possible?
I would argue that you shouldn't use std::for_each to *initialize* values anyway. Look at std::fill, std::iota (as mentioned, but not actually in the C++ standard library), std::generate, std::transform, etc. instead.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement