|
Boost : |
From: scleary_at_[hidden]
Date: 1999-09-01 10:56:06
Why not:
namespace boost {
namespace {
template <class Derived, class Base>
-> static
inline Derived polymorphic_cast(Base* x) {
assert( dynamic_cast<Derived>(x) != 0 ); // detect logic error
return static_cast<Derived>(x);
}
}
}
or am I missing something?
-Steve
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk