forked from boostorg/smart_ptr
const_pointer_cast added.
[SVN r19147]
This commit is contained in:
1 parent
7c36a640ae
commit
192970b3b8
5 files changed
+106
No files matched your search
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user