
23 Apr
2012
23 Apr
'12
1:26 a.m.
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