[xsd-users] Re: expected unqualified-id before ‘void’

Boris Kolpackov boris at codesynthesis.com
Mon Mar 19 10:21:54 EDT 2012


Hi Wahid,

Wahid <hamishagi at yahoo.com> writes:

> namespace http://www.smart.mit.edu/geo sim_mob {
>
> RoadNetwork_t void Link*;
>
> }
> 
> The first type mapping states that RoadNetwork_t will not want anything
> to return during its post_ function. however since the namespace has
> specified sim_mob as the c++-namespace, in the generated code we get:
> sim_mob::void

Yes, this is a bug in XSD which we will try to fix for the next release.
For now if you want to specify void, then you will need to qualify each
name individually:

namespace http://www.smart.mit.edu/geo {

RoadNetwork_t void sim_mob::Link*;

}

Boris



More information about the xsd-users mailing list