Use boost::swap instead of std::swap for swapping key/comp_ function objects
valziegler opened this issue · 4 comments
valziegler commented
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?
joaquintides commented
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.
valziegler commented
Thank you!
joaquintides commented
Fixed in 3caea31, care to check?
valziegler commented
adl_swap works for me, thanks again.