$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-07-24 15:34:13
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.