mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-07-30 04:47:12 +02:00
Check BOOST_NO_CXX11_RVALUE_REFERENCES in tests that use std::unique_ptr.
This commit is contained in:
@ -194,7 +194,7 @@ int main()
|
|||||||
BOOST_TEST( wp5.lock() == 0 );
|
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<X[]> px( new X[ 4 ] );
|
std::unique_ptr<X[]> px( new X[ 4 ] );
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
#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 >
|
struct X: public boost::enable_shared_from_this< X >
|
||||||
{
|
{
|
||||||
@ -229,7 +229,7 @@ int main()
|
|||||||
return boost::report_errors();
|
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()
|
int main()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user