Boost logo

Boost :

Subject: Re: [boost] [move] problem with msvc and BOOST_MOVABLE_BUT_NOT_COPYABLE
From: Thomas Klimpel (Thomas.Klimpel_at_[hidden])
Date: 2010-05-28 09:42:38


Ilya Sokolov wrote:
> Could BOOST_MOVABLE_BUT_NOT_COPYABLE be changed into CRTP base class?
> It would prevent such errors at compile time. Also, it is quite
> similar to boost::noncopyable.

It seems my answer to Oliver wasn't clear enough. This is not a problem of Boost.Move, but a simple programmer error in "X X::create()" that would have a significant performance penalty even if the compiler/linker would accept the code.

However, a CRTP class might be used to convert between the optimized mode with unhappy assignment operator signature and the non-optimized mode.

Regards,
Thomas


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk