Replace use of BOOST_HAS_RVALUE_REFS with !BOOST_NO_CXX11_RVALUE_REFERENCES.

[SVN r81900]
This commit is contained in:
Peter Dimov committed 2012-12-13 16:48:57 +00:00
1 parent bbf0245248
commit 647f67aabf
14 files changed
+27 -27

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ int main()
BOOST_TEST( X::instances == 0 );
}
#if defined(BOOST_HAS_VARIADIC_TMPL) && defined(BOOST_HAS_RVALUE_REFS)
#if defined( BOOST_HAS_VARIADIC_TMPL ) && !defined( BOOST_NO_CXX11_RVALUE_REFERENCES )
{
boost::shared_ptr< X[] > px = boost::allocate_shared< X[] >( std::allocator<X>(), 2, 1 );
+2 -2
View File
@@ -32,7 +32,7 @@
#include <boost/config.hpp>
#include <utility>
#if defined( BOOST_HAS_RVALUE_REFS )
#if !defined( BOOST_NO_CXX11_RVALUE_REFERENCES )
namespace N
{
@@ -173,7 +173,7 @@ int main()
return boost::report_errors();
}
#else // !defined( BOOST_HAS_RVALUE_REFS )
#else // defined( BOOST_NO_CXX11_RVALUE_REFERENCES )
int main()
{
+1 -1
View File
@@ -56,7 +56,7 @@ int main()
BOOST_TEST( X::instances == 0 );
}
#if defined(BOOST_HAS_VARIADIC_TMPL) && defined(BOOST_HAS_RVALUE_REFS)
#if defined( BOOST_HAS_VARIADIC_TMPL ) && !defined( BOOST_NO_CXX11_RVALUE_REFERENCES )
{
boost::shared_ptr< X[] > px = boost::make_shared< X[] >( 2, 1 );
+3 -3
View File
@@ -12,14 +12,14 @@
#include <boost/make_shared.hpp>
#include <boost/shared_ptr.hpp>
#if !defined( BOOST_HAS_RVALUE_REFS )
#if defined( BOOST_NO_CXX11_RVALUE_REFERENCES )
int main()
{
return 0;
}
#else // BOOST_HAS_RVALUE_REFS
#else // !defined( BOOST_NO_CXX11_RVALUE_REFERENCES )
class myarg
{
@@ -95,4 +95,4 @@ int main()
return boost::report_errors();
}
#endif // BOOST_HAS_RVALUE_REFS
#endif // !defined( BOOST_NO_CXX11_RVALUE_REFERENCES )
+2 -2
View File
@@ -12,7 +12,7 @@
#include <boost/detail/lightweight_test.hpp>
#include <utility>
#if defined( BOOST_HAS_RVALUE_REFS )
#if !defined( BOOST_NO_CXX11_RVALUE_REFERENCES )
struct X
{
@@ -97,7 +97,7 @@ int main()
return boost::report_errors();
}
#else // !defined( BOOST_HAS_RVALUE_REFS )
#else // defined( BOOST_NO_CXX11_RVALUE_REFERENCES )
int main()
{
+2 -2
View File
@@ -12,7 +12,7 @@
#include <boost/detail/lightweight_test.hpp>
#include <utility>
#if defined( BOOST_HAS_RVALUE_REFS )
#if !defined( BOOST_NO_CXX11_RVALUE_REFERENCES )
struct X
{
@@ -112,7 +112,7 @@ int main()
return boost::report_errors();
}
#else // !defined( BOOST_HAS_RVALUE_REFS )
#else // defined( BOOST_NO_CXX11_RVALUE_REFERENCES )
int main()
{