Re: Custom containers with Spirit X3 (QString)
Mike Gresens <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
Try to use an explicit rule for the string, like:
const x3::rule<struct String, QString> string("String");
const auto string_def = *x3::alnum;
and use it later in your grammars, like:
const x3::rule<class Test, boost::variant<double, QString>> test = "Test";
const auto test_def = x3::double_ | string;
Best regards,
Mike...
--
View this message in context: http://boost.2283326.n4.nabble.com/Custom-containers-with-Spirit-X3-QString-tp4689943p4689996.html
Sent from the spirit-general mailing list archive at Nabble.com.
------------------------------------------------------------------------------