Hi all,

I am not sure if the title is self explanatory, so, let me show an example of the goal.

I have:

variant<type1, type2, type3> v;

I want:

struct {
anobject<type1> _type1_object;
anobject<type2> _type2_object;
anobject<type3> _type3_object;
}

Is there a way to do such a thing with boost pp (or something else)?

Regards,

Olivier