not sure why but if used together with x3::variant in one compilation unit in g++ 11.3, there is a weird compile error:
boost/spirit/home/x3/support/ast/variant.hpp: In instantiation of 'struct boost::spirit::x3::variant<>':
/my/src/parser.hpp:173:33: required from here
boost/spirit/home/x3/support/ast/variant.hpp:131:15: error: wrong number of template arguments (0, should be at least 1)
131 | using variant_type = boost::variant<Types...>;
| ^~~~~~~~~~~~
boost/variant/variant_fwd.hpp:282:53: note: provided for 'template<class T0, class ... TN> class boost::variant'
282 | template < BOOST_VARIANT_AUX_DECLARE_PARAMS > class variant;
| ^~~~~~~
not sure why but if used together with
x3::variant
in one compilation unit in g++ 11.3, there is a weird compile error:could be workaround by change the
error_reporting.hpp
or replace the
std::endl
to'\n'
here I propose we replace the
std::endl
with'\n'
to avoid hitting potential compile bug