Boost logo

Boost Users :

Subject: Re: [Boost-users] How to get the behavior of make_recursive_variant ?
From: Peter Bartlett (pete_at_[hidden])
Date: 2010-07-07 07:32:27

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.

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