BOOST_FUSION_ADAPT_STRUCT for empty structs
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, (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,
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
"Christopher Schmidt"
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,
participants (2)
-
Christopher Schmidt
-
Hicham Mouline