[xsd-users] abstract type and its c++ equivalent
Klaim - Joël Lamotte
mjklaim at gmail.com
Wed Apr 24 06:20:07 EDT 2013
On Wed, Apr 24, 2013 at 9:17 AM, Klima Georg <G.Klima at durst-online.at>wrote:
> void* i = dynamic_cast<DPrnCal::xalignDescriptor_vt*>(pd.get()); is NOT
> working, as it would be expected (gets optimized away)
>
> but with std::cout <<
> dynamic_cast<DPrnCal::xalignDescriptor_vt*>(pd.get()) << std::endl; (that
> isn't optimized away or reorder)
> a valid pointer is printed to cout!
>
AFAIK, dynamic_cast can't get optimized away whatever the case...
Joel Lamotte
More information about the xsd-users
mailing list