Boost logo

Boost :

From: nbecker_at_[hidden]
Date: 2001-04-04 08:14:10

The STL function generate (also for_each, etc) pass by value, which
may not be what you had in mind. A simple workaround is something

template<typename iter, typename gen>
void generate_ref (iter start, iter end, gen g) {
  generate<iter, gen&> (start, end, g);

Does boost contain any similar (or maybe more elegent) approaches to
this common problem?

Boost list run by bdawes at, gregod at, cpdaniel at, john at