[xsd-users] Pointers to references
Boris Kolpackov
boris at codesynthesis.com
Sun Mar 2 09:32:11 EST 2014
Hi Mathew,
Mathew Benson <mathew.benson at gmail.com> writes:
> std::cout << typeid(argRef).name() << std::endl;
> space::xtce::ArgumentList::Argument_type& argObj
> (dynamic_cast<space::xtce::ArgumentList::Argument_type&> (*argRef));
You are printing the type name of argRef but trying to cast
*argRef. Try to print the type name of what you are actually
trying to cast (typeid(*argRef))
Boris
More information about the xsd-users
mailing list