Boost logo

Boost Users :

Subject: Re: [Boost-users] How to get the behavior of make_recursive_variant ?
From: Timothy Madden (terminatorul_at_[hidden])
Date: 2010-07-08 03:21:35

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.

I would like the possibility to create the type in-place, which
make_recursive_variant offers (recursive_wrapper requires a type already

Timothy Madden

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