S
Suzanne Vogel
** Isn't the 'static_cast' operator the same as traditional type
casting? ie, Aren't the following ways of getting b1, b2 the same?
// 'Derived' is derived from 'Base'
Derived* d = new Derived();
Base* b1 = static_cast<Base*>(d);
Base* b2 = (Base*)d; // traditional type casting
Such is my understanding from code samples, my own uses, and this:
http://www.cplusplus.com/doc/tutorial/tut5-4.html
Thanks.
casting? ie, Aren't the following ways of getting b1, b2 the same?
// 'Derived' is derived from 'Base'
Derived* d = new Derived();
Base* b1 = static_cast<Base*>(d);
Base* b2 = (Base*)d; // traditional type casting
Such is my understanding from code samples, my own uses, and this:
http://www.cplusplus.com/doc/tutorial/tut5-4.html
Thanks.