forked from boostorg/type_traits
Add more missing checks for BOOST_NO_CXX11_RVALUE_REFERENCES,
This commit is contained in:
@ -30,8 +30,9 @@ namespace boost{
|
||||
template <class T> struct has_nothrow_destructor : public detail::has_nothrow_destructor_imp<T, boost::is_destructible<T>::value>{};
|
||||
template <class T, std::size_t N> struct has_nothrow_destructor<T[N]> : public has_nothrow_destructor<T>{};
|
||||
template <class T> struct has_nothrow_destructor<T&> : public integral_constant<bool, false>{};
|
||||
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
||||
template <class T> struct has_nothrow_destructor<T&&> : public integral_constant<bool, false>{};
|
||||
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
|
||||
|
@ -44,7 +44,9 @@ template <> struct has_trivial_copy<void const volatile> : public false_type{};
|
||||
#endif
|
||||
|
||||
template <class T> struct has_trivial_copy<T&> : public false_type{};
|
||||
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
||||
template <class T> struct has_trivial_copy<T&&> : public false_type{};
|
||||
#endif
|
||||
|
||||
template <class T> struct has_trivial_copy_constructor : public has_trivial_copy<T>{};
|
||||
|
||||
|
@ -35,7 +35,9 @@ namespace boost{
|
||||
template <class T, std::size_t N> struct is_default_constructible<T[N]> : public is_default_constructible<T>{};
|
||||
template <class T> struct is_default_constructible<T[]> : public is_default_constructible<T>{};
|
||||
template <class T> struct is_default_constructible<T&> : public integral_constant<bool, false>{};
|
||||
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
||||
template <class T> struct is_default_constructible<T&&> : public integral_constant<bool, false>{};
|
||||
#endif
|
||||
template <> struct is_default_constructible<void> : public integral_constant<bool, false>{};
|
||||
template <> struct is_default_constructible<void const> : public integral_constant<bool, false>{};
|
||||
template <> struct is_default_constructible<void volatile> : public integral_constant<bool, false>{};
|
||||
|
@ -29,7 +29,9 @@ template <class T> struct is_nothrow_move_assignable<T const> : public false_typ
|
||||
template <class T> struct is_nothrow_move_assignable<T volatile> : public false_type{};
|
||||
template <class T> struct is_nothrow_move_assignable<T const volatile> : public false_type{};
|
||||
template <class T> struct is_nothrow_move_assignable<T&> : public false_type{};
|
||||
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
||||
template <class T> struct is_nothrow_move_assignable<T&&> : public false_type{};
|
||||
#endif
|
||||
|
||||
#elif !defined(BOOST_NO_CXX11_NOEXCEPT) && !defined(BOOST_NO_SFINAE_EXPR)
|
||||
|
||||
|
Reference in New Issue
Block a user