Boost logo

Boost Users :

Subject: [Boost-users] Recursive variant problem
From: Timothy Madden (terminatorul_at_[hidden])
Date: 2010-07-07 10:53:23


I use the following type in my application:

                std::basic_string<TCHAR>, // id
                std::basic_string<TCHAR>, // name
                std::basic_string<TCHAR>, // desc
                std::basic_string<TCHAR>, // type
                std::basic_string<TCHAR>, // value
                std::vector<boost::recursive_variant_> // childList

However when I instantiate it and I try to populate (resize) the vector
(member indexed 5 in the tuple, childList) I get:
      'boost::recursive_variant_' : class has no constructors
from Visual Studio 2008 SP1.

It looks like the boost::recursive_variant_ type is not substituted with
  the type of the enclosing variant by the make_recursive_variant
meta-function. Am I missing something ? Is this is bug ?

I have also tried adding some more members to the variant, with no success.

Thank you,
Timothy Madden

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