id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 2753,"Please let array::swap call boost::swap, instead of std::swap_ranges",niels_dekker,No-Maintainer,"The {{{swap}}} member function of {{{boost::array}}} is implemented by calling {{{std::swap_ranges}}}. Now I've looked into various STL implementations, and some of them have {{{swap_ranges}}} doing element-wise copying, even when the the element type has a custom {{{swap}}} function. So it appears be preferable to have {{{array::swap}}} call {{{boost::swap}}} instead, for each of its elements. The [http://www.boost.org/libs/utility/swap.html boost::swap utility], provided by Joseph Gauterin, takes care of calling the appropriate custom {{{swap}}}, whenever found by argument-dependent lookup (ADL). Moreover, it also supports swapping built-in arrays. So please consider applying the attached patch.",Patches,closed,Boost 1.39.0,array,Boost 1.38.0,Optimization,fixed,,niels_dekker