
24 Jul
2007
24 Jul
'07
7:34 p.m.
Eric Niebler wrote:
Peter Dimov wrote:
(1) can work for move-only types. I don't have experience with such proxies, so I can't tell. :-)
You mean when the proxy is move only? How does that solve the problem above?
vector_proxy const a = ...; vector_proxy b = std::move(a);
This won't work; the move constructor only takes non-const rvalues.