[xsd-users] Pointers to references

Mathew Benson mathew.benson at gmail.com
Sun Mar 2 16:22:05 EST 2014


Thanks for the help.  I have it worked out now.  The root of the problem is that I was trying to use xsd in a traditional "c" way.  It was very confusing.  I read through the samples and embraced using xsd in a c++ manner (I.e. iterators). It sounds trivial but it's a fundamental difference that has made my implementation MUCH simpler now and much easier to understand.

Sent from my iPhone

> On 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