Mooophy/Cpp-Primer

about 19.3.a

100156994 opened this issue · 0 comments

cannot dynamic_cast 'pa' (of type 'class A*') to type 'class B*' (source type is not polymorphic)
when i compiling with c++ 14.
A *pa = new C;
B pb = dynamic_cast<B>(pa)