|
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
like:
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 acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk