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() {