: public boost::spirit::extended_variant<std::string>
the error is:
In file included from /usr/include/boost/preprocessor/repeat.hpp:15:0,
/usr/include/boost/spirit/home/support/extended_variant.hpp:33:9: error: ‘BOOST_PP_REPEAT_1_BOOST_VARIANT_LIMIT_TYPES’ has not been declared
and so on. The compiler is g++ 4.9.2, boost 1.58, host os arch linux. Please note that the code compiles w/o any issues in c++03 mode. Funny thing is that it also compiles on Mac OS X with clang 3.6 in c++11 mode.
On 5/11/15 9:12 PM, Damir Nedzibovic wrote:
> Hello folks,
> I'm having some hard times compiling the following code in c++11 mode:
> #include <boost/spirit/include/support_extended_variant.hpp>
> #include <string>
You should probably use the one in X3 for now. That will replace
the extended_variant in support soon. The names are a bit different
though. It is called x3::variant, instead of extended_variant and
x3::forward_ast instead of boost::recursive_variant.
After we get X3 released, I'll have some template aliases in the
original extended_variant that points to x3::variant.