I have a legacy structure that is defined in such a way:
// file:MyStructure_def.h
STRUCT_BEGIN
STRUCT_FIELD(int,x)
STRUCT_END
// EOF
// file: MyStructure.h
#define STRUCT_BEGIN struct MyStructure{
#define STRUCT_FIELD(a,b) a b;
#define STRUCT_END };
#include "MyStructure_def.h"
// EOF
Is it possible to adapt such a generated struct to boost::fusion with BOOST_FUSION_ADAPT_STRUCT or any other macro without retyping all fields within the structure?