Hi guys and Gals,
Have some trouble digesting some facts about Casting in C++.
1). Why can't we use a static_cast for safe downcasting on a polymorphic class?
2).Consider this snippet..
class A {};
class B { public: B (A a) {} };
A a;
B b=a;
How does this implicit typecast seem to work.?
Can you throw some light on this.
Thanks in advance..