Boost logo

Boost :

Subject: Re: [boost] Iterator Range and operator==
From: Nathan Ridge (zeratul976_at_[hidden])
Date: 2012-04-22 19:26:25


The current behaviour of Boost.Range is consistent with the
bvehaviour of the C++11 range-based for loop, where

for (char e : "hello") {}

iterates 6 times, but

for (char e : std::string("hello")) {}

iterates 5 times.

I think it's important to retain this consistency. (Whether
the C++11 behaviour is desirable to begin with, is of course
a different question).

Regards,
Nate
                                               


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