Don't delete copy constructor when rvalue references are disabled

Before SVN r82706 from February 2013 (git a7091d1009), Boost.Move worked perfectly for compilers that supported deleted functions without supporting rvalue references (for example, clang with libstdc++ 4.2.1 on Mac to support OS X 10.6). r82706 broke those setups as temporaries now call the deleted copy constructor instead of the move constructor. This change reverts those setups to the old behavior.
This commit is contained in:
Marcel Raad
2014-09-23 15:37:28 +02:00
parent 291a95c30a
commit 9f31553033

View File

@@ -20,7 +20,7 @@
//boost_move_no_copy_constructor_or_assign typedef //boost_move_no_copy_constructor_or_assign typedef
//used to detect noncopyable types for other Boost libraries. //used to detect noncopyable types for other Boost libraries.
#if defined(BOOST_NO_CXX11_DELETED_FUNCTIONS) #if defined(BOOST_NO_CXX11_DELETED_FUNCTIONS) || defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
#define BOOST_MOVE_IMPL_NO_COPY_CTOR_OR_ASSIGN(TYPE) \ #define BOOST_MOVE_IMPL_NO_COPY_CTOR_OR_ASSIGN(TYPE) \
private:\ private:\
TYPE(TYPE &);\ TYPE(TYPE &);\