boostorg / container

STL-like containers from Boost
http://www.boost.org/libs/container/
Boost Software License 1.0
103 stars 113 forks source link

Mark small_vector move operations noexcept #79

Closed Lastique closed 5 years ago

Lastique commented 6 years ago

It should be possible to mark small_vector move constructor and move assignment noexcept if the corresponding move operations of the value_type are noexcept. This would be useful in multiple contexts, like generating noexcept defaulted constructors and operators in classes that contain small_vector objects.

igaztanaga commented 5 years ago

Many thanks for the report. The assignment operator needs to check also allocator-related conditions. Fixed in:

https://github.com/boostorg/container/commit/059133a3453378147f2bee2d9968544f64213936