const_pointer_cast added.

[SVN r19147]
This commit is contained in:
Peter Dimov committed 2003-07-16 11:51:12 +00:00
1 parent 7c36a640ae
commit 192970b3b8
5 files changed
+106

No files matched your search

+5
View File
@@ -220,6 +220,11 @@ template<class T, class U> intrusive_ptr<T> static_pointer_cast(intrusive_ptr<U>
return static_cast<T *>(p.get());
}
template<class T, class U> intrusive_ptr<T> const_pointer_cast(intrusive_ptr<U> const & p)
{
return const_cast<T *>(p.get());
}
template<class T, class U> intrusive_ptr<T> dynamic_pointer_cast(intrusive_ptr<U> const & p)
{
return dynamic_cast<T *>(p.get());