Fallback for is_nothrow_swappable on pre-C++11

This commit is contained in:
Daniel James
2017-11-28 22:12:01 +00:00
parent 1146f73070
commit 3e9608230c
3 changed files with 66 additions and 14 deletions
+5 -2
View File
@@ -1,4 +1,4 @@
[/
[/
Copyright 2017 Peter Dimov
Distributed under the Boost Software License, Version 1.0.
@@ -16,7 +16,10 @@ __inherit If the expression `swap(declval<T&>(), declval<T&>())` (in a context
where `std::swap` is visible) is valid and non-throwing, inherits from
__true_type, otherwise from __false_type.
__compat This trait requires C++11.
__compat This trait requires C++11 for full support. Without C++11 it will
inherit from __true_type for scalar types (including integral, floating point,
enumeration, pointer and pointer-to-member types), and from __false_type for
anything else.
__header ` #include <boost/type_traits/is_nothrow_swappable.hpp>` or ` #include <boost/type_traits.hpp>`