|
Boost Users : |
Subject: Re: [Boost-users] BOOST_FUSION_ADAPT_STRUCT for empty structs
From: Hicham Mouline (hicham_at_[hidden])
Date: 2010-09-08 08:17:49
"Christopher Schmidt" <mr.chr.schmidt_at_[hidden]> wrote in message
news:i67knu$vi9$1_at_dough.gmane.org...
> 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
Yes I mistyped. 'derived_parameters' it is.
ok, so my error is due to something else.
Thanks 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