mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-10-11 06:55:25 +02:00
*_ptr.hpp:
- Revert addition of is_pointerlike_helper weak_ptr.hpp: - Revert addition of get_pointer [SVN r15108]
This commit is contained in:
@@ -25,7 +25,6 @@
|
||||
#include <boost/checked_delete.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
#include <boost/detail/shared_count.hpp>
|
||||
#include <boost/type_traits/ice.hpp>
|
||||
|
||||
#include <memory> // for std::auto_ptr
|
||||
#include <algorithm> // for std::swap
|
||||
@@ -324,12 +323,6 @@ template<typename T> inline T * get_pointer(shared_ptr<T> const & p)
|
||||
return p.get();
|
||||
}
|
||||
|
||||
namespace detail {
|
||||
// is_pointerlike_helper enables Signals library to recognize shared_ptr
|
||||
template<typename T>
|
||||
type_traits::yes_type is_pointerlike_helper(const shared_ptr<T>&, int);
|
||||
} // end namespace detail
|
||||
|
||||
// shared_from_this() creates a shared_ptr from a raw pointer (usually 'this')
|
||||
|
||||
namespace detail
|
||||
|
Reference in New Issue
Block a user