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).


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