Boost logo

Boost Users :

From: Alban Linard (alban.linard_at_[hidden])
Date: 2008-02-26 17:10:42


Steven Watanabe a écrit :
> AMDG
>
> Alban Linard wrote:
>
>>Thank you very much!
>>
>>Next step, i would like to store a container of first_variant instead of
>> a single one.
>>
>>#include <cstdlib>
>>#include <vector>
>>#include <boost/variant.hpp>
>>
>>typedef ::boost::variant
>> < int
>> , bool
>> >
>> first_variant;
>>
>>typedef ::boost::make_recursive_variant
>> < ::std::vector< first_variant >
>> , ::std::vector< ::boost::recursive_variant_ >
>> >::type
>> second_variant;
>>
>>int main()
>>{
>> ::std::vector< first_variant > f;
>> second_variant s(f);
>> return EXIT_SUCCESS;
>>}
>>
>>This crashes, too. Again, did i use it wrong or is it another problem ?
>>
>
>
> It's a part of the same problem. The fix I gave wasn't quite right.
> Try applying the patch I attached to
> http://svn.boost.org/trac/boost/ticket/1654
>
> In Christ,
> Steven Watanabe

Your patch solved the second problem too.

Again, thank you very much.
Alban Linard


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