
7 Jul
2010
7 Jul
'10
11:12 p.m.
On 07/07/10 06:32, Peter Bartlett wrote:
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. Like in the attached?