Boost logo

Boost Users :

Subject: Re: [Boost-users] Recursive variant problem
From: Larry Evans (cppljevans_at_[hidden])
Date: 2010-07-08 10:35:24


On 07/08/10 09:09, Mathias Gaunard wrote:
> On 08/07/10 08:11, Timothy Madden wrote:
>
>>> struct tuple_tree
>>> : std::tr1::tuple
>>> < float
>>> , int
>>> , std::vector<tuple_tree*>
>>> >
>>> {
>>> };
>>
>> I can use vector<tuple_tree> directly
>
> This is not allowed by the C++ standard. Types must be complete.

The attached compiles/runs OK with gcc4.4 and gcc4.5. Are they
wrong? I initially thought like you, but after the attached
compiled and ran, I'm not so sure.




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