"Nicolas Ferre'" <[EMAIL PROTECTED]> writes:
========================
| > #include <typeinfo>
| >
| > class A {};
| >
| > class B : public A {};
| >
| > int main() {
| > B * b = new B;
| > A * a = dynamic_cast<A*>(b);
| > typeid(B) == typeid(a);
| > }
========================
| > Does this compile on your box?
| >
| > g++ -W -Wall -O0 -g dynamic.C -o dynamic
| >
|
| No, I get these error messages:
Did you actually use the whole program?
(btween the ====== lines)
--
Lgb
