Boost logo

Boost Users :

Subject: [Boost-users] BOOST_FUSION_ADAPT_STRUCT for empty structs
From: Hicham Mouline (hicham_at_[hidden])
Date: 2010-09-08 01:05:23


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,


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