Boost logo

Boost Users :

Subject: Re: [Boost-users] [Variant] Tree like structure with variant
From: dariomt (dariomt_at_[hidden])
Date: 2010-10-21 10:22:15


Mathias Gaunard <mathias.gaunard <at> ens-lyon.org> writes:

>
> On 21/10/10 09:39, dariomt <at> gmail.com wrote:
> > Hi all,
> >
> > I need a tree-like structure like the following
> >
> > boost::variant< int, std::vector<tree>, std::map<std::string, tree> > tree;
>
> boost::make_recursive_variant<
> int,
> std::vector< boost::recursive_variant_ >,
> std::map< std::string, boost::recursive_variant_ >
> >::type tree;
>

*blush*

It was right there, if I only had read the docs to the end...

Thanks a lot!


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net