boost.lamda problems. want to increment a var inside an expression. is it possible?

Started by
9 comments, last by Zahlman 17 years, 6 months ago
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