|
Boost Users : |
Subject: Re: [Boost-users] BOOST_FUSION_ADAPT_STRUCT for empty structs
From: Christopher Schmidt (mr.chr.schmidt_at_[hidden])
Date: 2010-09-08 05:24:15
Hicham Mouline schrieb:
> Hello
>
> I have this situation:
>
> namespace X
> {
>
> struct base_parameters {
> double skid;
> };
>
> namespace XX
> {
> struct derived_parameters: public base_parameters {
> double old_field;
> };
> }
>
> }
>
> // at global namespace
> BOOST_FUSION_ADAPT_STRUCT(
> X::XX::parameters,
there is no type named 'parameters' in X::XX .
> (double, skid)
> //(double, old_field)
> )
>
> boost 1.44
>
> Is this supposed to work?
>
> I'm getting a compile error which I can't understand and 1 change that I've
> done is remove the only field that was before in derived_parameters.
>
> Regards,
changing 'parameters' to 'derived_parameters' makes it compile fine here
(boost trunk, vc10).
-Christopher
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net