--- 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.