Boost logo

Boost :

From: Thomas Maeder (maeder_at_[hidden])
Date: 2001-04-05 11:30:21


nbecker_at_[hidden] wrote:
>
> generate<iter, gen&> (start, end, g);

This wasn't your question, but: it's not very clear if this is legal. The
generate algorithm as documented in §25.5.6 clearly requires a function
object to be passed. A function object is defined in §25 (rather implicitly,
though) to be either a pointer to function or an object with an
appropriately overloaded operator(). A reference is not an object in C++.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk