mirror of
https://github.com/boostorg/smart_ptr.git
synced 2026-04-29 10:34:16 +02:00
Remove uses of boost::remove_reference
This commit is contained in:
@@ -11,9 +11,9 @@
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/enable_shared_from_this.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
#include <boost/type_traits/remove_reference.hpp>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
#include <type_traits>
|
||||
|
||||
struct X: public boost::enable_shared_from_this< X >
|
||||
{
|
||||
@@ -87,7 +87,7 @@ template<class U, class T, class D> static void test_null_unique_ptr( std::uniqu
|
||||
BOOST_TEST( sp.get() == 0 );
|
||||
BOOST_TEST( sp.use_count() == 0 );
|
||||
|
||||
sp.reset( new T, typename boost::remove_reference<D>::type() );
|
||||
sp.reset( new T, typename std::remove_reference<D>::type() );
|
||||
|
||||
BOOST_TEST( sp.get() != 0 );
|
||||
BOOST_TEST( sp.use_count() == 1 );
|
||||
|
||||
Reference in New Issue
Block a user