*_ptr.hpp:

- Added detail::is_pointerlike_helper function templates for Signals

weak_ptr.hpp:
  - Added get_pointer function template for weak_ptr


[SVN r15099]
This commit is contained in:
Douglas Gregor committed 2002-08-26 15:27:23 +00:00
1 parent e84eb3f1ba
commit b9dceb2340
4 files changed
+32

No files matched your search

+13
View File
@@ -168,6 +168,19 @@ 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