|
Boost : |
Subject: Re: [boost] [move] problem with msvc and BOOST_MOVABLE_BUT_NOT_COPYABLE
From: David Abrahams (dave_at_[hidden])
Date: 2010-05-28 20:22:48
At Fri, 28 May 2010 22:31:11 +0200,
Ion Gaztañaga wrote:
>
> On 28/05/2010 21:27, Ilya Sokolov wrote:
> > X(const X&) = delete;
> > X& operator=(const X&) = delete;
>
> Ok, but we are talking about rvalue references and asking if Boost.Move
> provokes some late error report. It's a shame we can't provoke a
> compilation error always (even with NVRO, I thought the compiler should
> check for the copy constructor,
Yes, a conforming compiler checks for it and issues a diagnostic if it
isn't accessible, whether or not it's actually used.
> but I'm not an expert), but that's the best we can do.
-- Dave Abrahams Meet me at BoostCon: http://www.boostcon.com BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk