This program crashes for me (boost 1.90), during the destructor of small_vector:
#include <boost/container/small_vector.hpp>
int main() {
boost::container::small_vector<int, 2> a{1, 11};
boost::container::small_vector<int, 2> b{2, 22};
swap(a, b);
}
Supposedly the problem is that swap calls boost::container::vector::swap (hidden friend), instead of a small_vector member function.
(Note: a.swap(b) works correctly)
This program crashes for me (boost 1.90), during the destructor of
small_vector:Supposedly the problem is that
swapcallsboost::container::vector::swap(hidden friend), instead of asmall_vectormember function.(Note:
a.swap(b)works correctly)