|
Boost : |
From: shunsuke (pstade.mb_at_[hidden])
Date: 2007-09-29 23:47:18
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk