use correct type in known_cast dynamic test

This commit is contained in:
Danny Robson 2012-08-15 17:44:29 +10:00
parent fcd3f73704
commit 8cb01aae18

View File

@ -122,8 +122,8 @@ size_cast (const V v) {
template <typename T, typename V> template <typename T, typename V>
T* T*
known_cast (V *v) { known_cast (V *v) {
CHECK_HARD (nullptr != dynamic_cast<T> (v)); CHECK_HARD (nullptr != dynamic_cast<T*> (v));
return static_cast<T> (v); return static_cast<T*> (v);
} }