[xsd-users] Pointers to references

Mathew Benson mathew.benson at gmail.com
Sun Mar 2 11:13:25 EST 2014


When I dereference the pointer, I get a seg fault on that first line now.
 It looks like the function that should be returning the argumentRef
property (type="IDREF"), isn't returning what I think it was.


On Sun, Mar 2, 2014 at 8:32 AM, Boris Kolpackov <boris at codesynthesis.com>wrote:

> 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