#pragma warning (disable: 4786) #include #include "../include/test_reg_goose.h" #include "../include/test_bottle.h" using namespace std; using namespace xParam; class bottle_output_functor { public: static ValueList sub_objects(const bottle& b) { ValueList vl; return vl << Val(b.msg()); } }; PARAM_BEGIN_REG param_map(); param_ptr_map(); param_const_ptr_map(); PARAM_CLASS(bottle); // make sure that bottle is registered AFTER. param_ctor(TypeTag()); param_ctor(TypeTag(),ConstRef("message")); param_output(); PARAM_END_REG