static casting


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by Z on April 20, 2001 at 23:42:57:

If i had something like:
Base* someptr;
Derived* someder = new Derived(blah blah blah blah);
someptr = static_cast(Base*)(someder);

why would i end up with nothing but trash in someptr after
the cast?
Assuming that someder had all the correct values before
the cast takes place.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]