Opened 10 years ago
Last modified 10 years ago
#7968 new Feature Requests
swap: Add noexcept to conform with C++11 on compilers supporting it.
Reported by: | viboes | Owned by: | joseph.gauterin |
---|---|---|---|
Milestone: | To Be Determined | Component: | swap |
Version: | Boost 1.53.0 | Severity: | Problem |
Keywords: | Cc: | shane.turner@… |
Description
template<class T> void swap(T& a, T& b) noexcept(see below ); 1 Remark: The expression inside noexcept is equivalent to: is_nothrow_move_constructible<T>::value && is_nothrow_move_assignable<T>::value template<class T, size_t N> void swap(T (&a)[N], T (&b)[N]) noexcept(noexcept(swap(*a, *b)));
Note:
See TracTickets
for help on using tickets.