from a variant to class with members templated over the variant types
Hi all,
I am not sure if the title is self explanatory, so, let me show an example
of the goal.
I have:
variant
AMDG On 09/21/2011 05:44 AM, Olivier Tournaire wrote:
I am not sure if the title is self explanatory, so, let me show an example of the goal.
I have:
variant
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)?
Something like this should work:
typedef variant
participants (2)
-
Olivier Tournaire
-
Steven Watanabe