* include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()): Use
__is_nothrow_swappable.
From-SVN: r224552
+2015-06-17 Jonathan Wakely <jwakely@redhat.com>
+
+ * include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()): Use
+ __is_nothrow_swappable.
+
2015-06-16 Jonathan Wakely <jwakely@redhat.com>
* include/bits/allocated_ptr.h (__allocated_ptr): Use __addressof.
static constexpr bool _S_nothrow_swap()
{
- using std::swap;
return !_S_propagate_on_swap()
- || noexcept(swap(std::declval<_Alloc&>(), std::declval<_Alloc&>()));
+ || std::__is_nothrow_swappable<_Alloc>::value;
}
template<typename _Tp>