diff --git a/include/boost/smart_ptr/make_unique.hpp b/include/boost/smart_ptr/make_unique.hpp index 0c032ef..93f27ec 100644 --- a/include/boost/smart_ptr/make_unique.hpp +++ b/include/boost/smart_ptr/make_unique.hpp @@ -12,9 +12,9 @@ Distributed under the Boost Software License, Version 1.0. #include #include #include -#include #include #include +#include namespace boost { @@ -34,7 +34,7 @@ make_unique(Args&&... args) template inline typename enable_if_::value, std::unique_ptr >::type -make_unique(typename remove_reference::type&& value) +make_unique(typename std::remove_reference::type&& value) { return std::unique_ptr(new T(std::move(value))); } diff --git a/test/sp_bml_unique_ptr_test.cpp b/test/sp_bml_unique_ptr_test.cpp index 966461c..8017b44 100644 --- a/test/sp_bml_unique_ptr_test.cpp +++ b/test/sp_bml_unique_ptr_test.cpp @@ -12,9 +12,9 @@ #include #include #include -#include #include #include +#include struct X: public boost::enable_shared_from_this< X > { @@ -88,7 +88,7 @@ template static void test_null_unique_ptr( boost::mov BOOST_TEST( sp.get() == 0 ); BOOST_TEST( sp.use_count() == 0 ); - sp.reset( new T, typename boost::remove_reference::type() ); + sp.reset( new T, typename std::remove_reference::type() ); BOOST_TEST( sp.get() != 0 ); BOOST_TEST( sp.use_count() == 1 ); diff --git a/test/sp_unique_ptr_test.cpp b/test/sp_unique_ptr_test.cpp index e759278..8fb99d3 100644 --- a/test/sp_unique_ptr_test.cpp +++ b/test/sp_unique_ptr_test.cpp @@ -11,9 +11,9 @@ #include #include #include -#include #include #include +#include struct X: public boost::enable_shared_from_this< X > { @@ -87,7 +87,7 @@ template 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::type() ); + sp.reset( new T, typename std::remove_reference::type() ); BOOST_TEST( sp.get() != 0 ); BOOST_TEST( sp.use_count() == 1 );