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:
Peter Dimov
2015-06-05 15:31:27 +03:00

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 )