
11 May
2005
11 May
'05
5:04 p.m.
Thorsten Ottosen wrote:
"Peter Dimov" <pdimov@mmltd.net> wrote in message news:002001c55630$afeeaa00$6801a8c0@pdimov...
The meaning of the language construct for( type i: expr ) changes based on what overloads are visible. This is relatively uncommon for C++.
the meaning of
for( const auto& r : make_range( expr ) )
would also change depending on what overloads that are visible.
As would the meaning of expr, obviously. But once expr is evaluated, there would be no hidden surprises. Besides, make_range takes two arguments, first and last. :-)