[xsd-users] Re: expected unqualified-id before ‘void’
Wahid
hamishagi at yahoo.com
Mon Mar 19 22:58:29 EDT 2012
Hi,
Yes, this can work. we can have different namespaces defined in the map file. However,this will cause another different challenge that i will bring it up in another post.
vahid
--- On Mon, 3/19/12, Boris Kolpackov <boris at codesynthesis.com> wrote:
From: Boris Kolpackov <boris at codesynthesis.com>
Subject: Re: expected unqualified-id before ‘void’
To: "Wahid" <hamishagi at yahoo.com>
Cc: xsd-users at codesynthesis.com
Date: Monday, March 19, 2012, 7:51 PM
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