
7 Jul
2010
7 Jul
'10
11:32 a.m.
Quoting Timothy Madden
boost::make_recursive_variant< >::type can serve my purpose well, except that I do not need a variant in my structure, I just need the structure to be recursive. Is there a way to get the recursive-definition behavior of make_recursive_variant<>, without the variant ?
Also I am curios: how is such a recursive definition possible ? How does make_recursive_variant implement it ?
Sounds like a job for boost::recursive_wrapper, which variant uses under the hood.