src/core/ptr.h
changeset 3767 b03ea30335a3
parent 3748 cb3da9028895
child 4329 e7873b6d3f5e
--- a/src/core/ptr.h	Fri Oct 17 20:07:44 2008 +0200
+++ b/src/core/ptr.h	Mon Oct 20 08:40:32 2008 +0200
@@ -361,11 +361,18 @@
 
 template <typename T1, typename T2>
 Ptr<T1>
-const_pointer_cast (Ptr<T2> const&p)
+ConstCast (Ptr<T2> const&p)
 {
   return Ptr<T1> (const_cast<T1 *> (PeekPointer (p)));
 }
 
+template <typename T1, typename T2>
+Ptr<T1>
+DynamicCast (Ptr<T2> const&p)
+{
+  return Ptr<T1> (dynamic_cast<T1 *> (PeekPointer (p)));
+}
+
 
 /****************************************************
  *      Member method implementations.