forked from boostorg/type_traits
Reuse is_swappable implementation in is_nothrow_swappable for gcc < 4.7.
This avoids applying noexcept operator to a potentially invalid swap expression, which should resolve ICE with gcc 4.6.
This commit is contained in:
1 parent
fc61f298bf
commit
5f43b22861
4 files changed
+21
-5
No files matched your search
@@ -18,7 +18,6 @@
|
||||
|
||||
// These conditions should be similar to those in is_nothrow_swappable.hpp
|
||||
#if defined(BOOST_NO_SFINAE_EXPR) || defined(BOOST_NO_CXX11_NOEXCEPT) || defined(BOOST_NO_CXX11_DECLTYPE) || defined(BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS) \
|
||||
|| BOOST_WORKAROUND(BOOST_GCC, < 40700) \
|
||||
|| (defined(__GLIBCXX__) && __GLIBCXX__ <= 20120301) // built-in clang++ -std=c++11 on Travis, w/ libstdc++ 4.6
|
||||
#define BOOST_TYPE_TRAITS_IS_NOTHROW_SWAPPABLE_EMULATED
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user