mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-10-17 18:05:24 +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:
@@ -168,19 +168,6 @@ template<class T> shared_ptr<T> make_shared(weak_ptr<T> const & r) // never thro
|
||||
}
|
||||
}
|
||||
|
||||
// mem_fn support
|
||||
|
||||
template<class T> T * get_pointer(weak_ptr<T> const & p)
|
||||
{
|
||||
return p.get();
|
||||
}
|
||||
|
||||
namespace detail {
|
||||
// is_pointerlike_helper enables Signals library to recognize intrusive_ptr
|
||||
template<typename T>
|
||||
type_traits::yes_type is_pointerlike_helper(const weak_ptr<T>&, int);
|
||||
} // end namespace detail
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
|
Reference in New Issue
Block a user