Boost logo

Boost :

Subject: Re: [boost] [core] A better boost::swap
From: Rob Stewart (robertstewart_at_[hidden])
Date: 2014-12-29 05:22:29


On December 28, 2014 1:42:54 PM EST, Pete Bartlett <pete_at_[hidden]> wrote:
>>I'm sure Antony meant to change the implementation to match the ideas
>in Ion's code, not use the test implementation he showed.
>
>But isn't the whole idea to depend on Boost.Move so that swap can
>benefit
>from move emulation?
>As Peter said, a new Boost.Swap could depend on Move, but Core should
>not.

It could be implemented based upon C++11 move semantics, when available. If there were a way to detect and use Boost.Move without requiring a reference to it, that would be ideal, of course.

___
Rob

(Sent from my portable computation engine)


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