boostorg/multi_index

Use boost::swap instead of std::swap for swapping key/comp_ function objects

valziegler opened this issue · 4 comments

void ordered_index_impl<...>::swap_(ordered_index_impl<...>& x) uses std::swap for swapping the key and comp_ functors. Is there any particular reason for not using boost::swap here?

Hi,

No, there's no particular reason why ADL-enabled swap is not used, and in fact the current behavior is in disagreement with [swappable.requirements]. Will fix this in a few days.

Thank you!

Fixed in 3caea31, care to check?

adl_swap works for me, thanks again.