use correct type in known_cast dynamic test
This commit is contained in:
parent
fcd3f73704
commit
8cb01aae18
@ -122,8 +122,8 @@ size_cast (const V v) {
|
||||
template <typename T, typename V>
|
||||
T*
|
||||
known_cast (V *v) {
|
||||
CHECK_HARD (nullptr != dynamic_cast<T> (v));
|
||||
return static_cast<T> (v);
|
||||
CHECK_HARD (nullptr != dynamic_cast<T*> (v));
|
||||
return static_cast<T*> (v);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user