| 487 | |
| 488 | template<class T> |
| 489 | inline T *virtual_cast(virtual_ptr ptr) { |
| 490 | return T::_identity.is_instance(ptr) ? static_cast<T*>(ptr) : NULL; |
| 491 | } |
| 492 | |
| 493 | #define VIRTUAL_CAST_VAR(var,type,input) type *var = virtual_cast<type>(input) |
| 494 |
nothing calls this directly
no test coverage detected