Re: Custom containers with Spirit X3 (QString)

Tim Angus <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
That did the trick, thanks!

On 18/11/16 19:38, Mike Gresens wrote:
> 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.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Spirit-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/spirit-general
>

------------------------------------------------------------------------------

_______________________________________________
Spirit-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spirit-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.