From ed2eaddc5d075dbfed01a9e86fdd060b77cc6107 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 15 May 2014 18:51:27 +0300 Subject: [PATCH] Check BOOST_NO_CXX11_RVALUE_REFERENCES in tests that use std::unique_ptr. --- test/sp_array_test.cpp | 2 +- test/sp_unique_ptr_test.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/sp_array_test.cpp b/test/sp_array_test.cpp index 0c7f597..d508d53 100644 --- a/test/sp_array_test.cpp +++ b/test/sp_array_test.cpp @@ -194,7 +194,7 @@ int main() BOOST_TEST( wp5.lock() == 0 ); } -#if !defined( BOOST_NO_CXX11_SMART_PTR ) +#if !defined( BOOST_NO_CXX11_SMART_PTR ) && !defined( BOOST_NO_CXX11_RVALUE_REFERENCES ) { std::unique_ptr px( new X[ 4 ] ); diff --git a/test/sp_unique_ptr_test.cpp b/test/sp_unique_ptr_test.cpp index 69bbaf9..a6d1e4c 100644 --- a/test/sp_unique_ptr_test.cpp +++ b/test/sp_unique_ptr_test.cpp @@ -14,7 +14,7 @@ #include #include -#if !defined( BOOST_NO_CXX11_SMART_PTR ) +#if !defined( BOOST_NO_CXX11_SMART_PTR ) && !defined( BOOST_NO_CXX11_RVALUE_REFERENCES ) struct X: public boost::enable_shared_from_this< X > { @@ -229,7 +229,7 @@ int main() return boost::report_errors(); } -#else // !defined( BOOST_NO_CXX11_SMART_PTR ) +#else // !defined( BOOST_NO_CXX11_SMART_PTR ) && !defined( BOOST_NO_CXX11_RVALUE_REFERENCES ) int main() {