
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
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