Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2005-05-11 08:20:26

"David Abrahams" <dave_at_[hidden]> wrote in message
| "Thorsten Ottosen" <nesotto_at_[hidden]> writes:
| > it wouldn't work with pair<iterator,iterator> without an adapter.
| I'm not convinced that's such an important capability.

it is all about syntax, and it's not just pair<iterator,iterator>
but users own types too.

we could demand that

using std::make_range;
for( const suto& r : make_range( expression ) )

was the generic solution, but the amount of work it takes to include
is certainly not great.

also, member functions are worse at forwarding than free-standing.


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