Skip to content

Commit 7c87ae7

Browse files
committed
Remove use of boost::remove_const
1 parent f2abcf1 commit 7c87ae7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/boost/smart_ptr/make_local_shared_object.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
#include <boost/smart_ptr/local_shared_ptr.hpp>
1515
#include <boost/smart_ptr/make_shared.hpp>
16-
#include <boost/type_traits/remove_const.hpp>
1716
#include <boost/config.hpp>
17+
#include <type_traits>
1818
#include <utility>
1919
#include <cstddef>
2020

@@ -155,13 +155,13 @@ template<class T, class A> typename boost::detail::lsp_if_not_array<T>::type all
155155

156156
template<class T, class... Args> typename boost::detail::lsp_if_not_array<T>::type make_local_shared( Args&&... args )
157157
{
158-
typedef typename boost::remove_const<T>::type T2;
158+
typedef typename std::remove_const<T>::type T2;
159159
return boost::allocate_local_shared<T2>( std::allocator<T2>(), std::forward<Args>(args)... );
160160
}
161161

162162
template<class T> typename boost::detail::lsp_if_not_array<T>::type make_local_shared_noinit()
163163
{
164-
typedef typename boost::remove_const<T>::type T2;
164+
typedef typename std::remove_const<T>::type T2;
165165
return boost::allocate_shared_noinit<T2>( std::allocator<T2>() );
166166
}
167167

0 commit comments

Comments
 (0)