Ticket #11455: no_rvalue.diff

File no_rvalue.diff, 1.6 KB (added by Bjorn Reese <breese@…>, 7 years ago)
  • include/boost/type_traits/has_nothrow_copy.hpp

    diff --git a/include/boost/type_traits/has_nothrow_copy.hpp b/include/boost/type_traits/has_nothrow_copy.hpp
    index b95e094..112ba88 100644
    a b template <class T> struct has_nothrow_copy_constructor : public integral_constan  
    6767template <> struct has_nothrow_copy_constructor<void> : public false_type{};
    6868template <class T> struct has_nothrow_copy_constructor<T volatile> : public false_type{};
    6969template <class T> struct has_nothrow_copy_constructor<T&> : public false_type{};
     70#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
    7071template <class T> struct has_nothrow_copy_constructor<T&&> : public false_type{};
     72#endif
    7173#ifndef BOOST_NO_CV_VOID_SPECIALIZATIONS
    7274template <> struct has_nothrow_copy_constructor<void const> : public false_type{};
    7375template <> struct has_nothrow_copy_constructor<void volatile> : public false_type{};
  • include/boost/type_traits/has_trivial_copy.hpp

    diff --git a/include/boost/type_traits/has_trivial_copy.hpp b/include/boost/type_traits/has_trivial_copy.hpp
    index fc81dbe..c0b3344 100644
    a b template <> struct has_trivial_copy<void const volatile> : public false_type{};  
    4444#endif
    4545
    4646template <class T> struct has_trivial_copy<T&> : public false_type{};
     47#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
    4748template <class T> struct has_trivial_copy<T&&> : public false_type{};
     49#endif
    4850
    4951template <class T> struct has_trivial_copy_constructor : public has_trivial_copy<T>{};
    5052