forked from boostorg/type_traits
Fallback for is_nothrow_swappable on pre-C++11
This commit is contained in:
@@ -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>`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user