mirror of
https://github.com/boostorg/core.git
synced 2025-07-29 20:37:22 +02:00
Merge pull request #11 from awulkiew/feature/auto_ptr
Disable auto_ptr support in get_pointer when BOOST_NO_AUTO_PTR is def…
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
|
||||
|
||||
#if !defined( BOOST_NO_AUTO_PTR )
|
||||
|
||||
template<class T> T * get_pointer(std::auto_ptr<T> const& p)
|
||||
{
|
||||
return p.get();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#if !defined( BOOST_NO_CXX11_SMART_PTR )
|
||||
|
||||
template<class T> T * get_pointer( std::unique_ptr<T> const& p )
|
||||
|
Reference in New Issue
Block a user