mirror of
https://github.com/boostorg/core.git
synced 2025-07-30 04:47:24 +02:00
Disable auto_ptr support in get_pointer when BOOST_NO_AUTO_PTR is defined.
This commit is contained in:
@ -24,11 +24,15 @@ template<class T> T * get_pointer(T * p)
|
|||||||
|
|
||||||
// get_pointer(shared_ptr<T> const & p) has been moved to shared_ptr.hpp
|
// get_pointer(shared_ptr<T> const & p) has been moved to shared_ptr.hpp
|
||||||
|
|
||||||
|
#if !defined( BOOST_NO_AUTO_PTR )
|
||||||
|
|
||||||
template<class T> T * get_pointer(std::auto_ptr<T> const& p)
|
template<class T> T * get_pointer(std::auto_ptr<T> const& p)
|
||||||
{
|
{
|
||||||
return p.get();
|
return p.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined( BOOST_NO_CXX11_SMART_PTR )
|
#if !defined( BOOST_NO_CXX11_SMART_PTR )
|
||||||
|
|
||||||
template<class T> T * get_pointer( std::unique_ptr<T> const& p )
|
template<class T> T * get_pointer( std::unique_ptr<T> const& p )
|
||||||
|
Reference in New Issue
Block a user