
30 Sep
2007
30 Sep
'07
3:47 a.m.
Sean Huang wrote:
I removed the operator= that accepts sub_range r passed by value and everything started working.
This is because template< class ForwardRange2 > sub_range& operator=( ForwardRange2& r ) wins the overloading race against implicitly-defined copy-assignment operator. This behavior is conforming. Well, a templated constructor/assignment seems difficult to implement. FWIW, my sub_range is here :-) http://tinyurl.com/35s4wp Regards, -- Shunsuke Sogame