40 template<
typename TTo,
typename TFrom>
43 TTo *t =
dynamic_cast<TTo*
>(&
p);
48 template<
typename TTo,
typename TFrom>
49 TTo &
DownCast(
const TTo &pfrom,
const TFrom &p)
51 const TTo *t =
dynamic_cast<const TTo*
>(&
p);
#define UG_ASSERT(expr, msg)
Definition: assert.h:70
std::string TypeName(const T &t)
Definition: typename.h:40
TTo & DownCast(const TTo &pfrom, TFrom &p)
Definition: util.h:41