Disable auto_ptr support in get_pointer when BOOST_NO_AUTO_PTR is defined.

This commit is contained in:
Adam Wulkiewicz
2015-06-05 14:09:08 +02:00
parent 6bf1e7a681
commit de616f6d1b

View File

@ -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 )