Boost logo

Boost Users :

Subject: Re: [Boost-users] How to get the behavior of make_recursive_variant ?
From: Larry Evans (cppljevans_at_[hidden])
Date: 2010-07-07 19:12:20

On 07/07/10 06:32, Peter Bartlett wrote:
> Quoting Timothy Madden <terminatorul_at_[hidden]>:
>> 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?

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at