[move][core] boost::swap() vs boost::adl_move_swap()

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[move][core] boost::swap() vs boost::adl_move_swap()

Boost - Dev mailing list
Hi Everyone,
I am seeking an advice.
I recently got this pull request:
https://github.com/boostorg/optional/pull/77
changing the boost::swap() to boost::adl_move_swap() because it should
compile faster.

Is there any recommendation for Boost libraries which one to prefer and
under what circumstances? boost::adl_move_swap() seems to allow moves
rather than copies in more cases. On the other hand boost::swap() seems to
have other improvements, like BOOST_GPU_ENABLED.

Regards,
&rzej;

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Reply | Threaded
Open this post in threaded view
|

Re: [move][core] boost::swap() vs boost::adl_move_swap()

Boost - Dev mailing list
Andrzej Krzemienski wrote:
> Hi Everyone,
> I am seeking an advice.
> I recently got this pull request:
> https://github.com/boostorg/optional/pull/77
> changing the boost::swap() to boost::adl_move_swap() because it should
> compile faster.

Here's some context about this PR: https://github.com/boostorg/core/pull/67


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost