mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-07-30 04:47:12 +02:00
Remove use of boost::remove_const
This commit is contained in:
@ -13,8 +13,8 @@
|
|||||||
|
|
||||||
#include <boost/smart_ptr/local_shared_ptr.hpp>
|
#include <boost/smart_ptr/local_shared_ptr.hpp>
|
||||||
#include <boost/smart_ptr/make_shared.hpp>
|
#include <boost/smart_ptr/make_shared.hpp>
|
||||||
#include <boost/type_traits/remove_const.hpp>
|
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
|
#include <type_traits>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
|
||||||
@ -155,13 +155,13 @@ template<class T, class A> typename boost::detail::lsp_if_not_array<T>::type all
|
|||||||
|
|
||||||
template<class T, class... Args> typename boost::detail::lsp_if_not_array<T>::type make_local_shared( Args&&... args )
|
template<class T, class... Args> typename boost::detail::lsp_if_not_array<T>::type make_local_shared( Args&&... args )
|
||||||
{
|
{
|
||||||
typedef typename boost::remove_const<T>::type T2;
|
typedef typename std::remove_const<T>::type T2;
|
||||||
return boost::allocate_local_shared<T2>( std::allocator<T2>(), std::forward<Args>(args)... );
|
return boost::allocate_local_shared<T2>( std::allocator<T2>(), std::forward<Args>(args)... );
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T> typename boost::detail::lsp_if_not_array<T>::type make_local_shared_noinit()
|
template<class T> typename boost::detail::lsp_if_not_array<T>::type make_local_shared_noinit()
|
||||||
{
|
{
|
||||||
typedef typename boost::remove_const<T>::type T2;
|
typedef typename std::remove_const<T>::type T2;
|
||||||
return boost::allocate_shared_noinit<T2>( std::allocator<T2>() );
|
return boost::allocate_shared_noinit<T2>( std::allocator<T2>() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user