spirit_x3 icon indicating copy to clipboard operation
spirit_x3 copied to clipboard

Add an explicit attribute collapsing specialization for two unused_types

Open jktjkt opened this issue 11 years ago • 3 comments

The test case is trying to ignore the attribute of the CRLF rule. Without the patch to make_attribute.hpp, the compiler doesn't know which of the specializations to use, and the build fails.

jktjkt avatar Oct 20 '13 11:10 jktjkt

Could you please reduce the test case to the bare minimum? For instance, you don't need a grammar, a single rule should suffice. Additionally, please make your identifiers all lowercase.

K-ballo avatar Oct 20 '13 16:10 K-ballo

I was able to reduce the test case to a minimum:

unused_type attr;
rule<class rule_id> const r;
BOOST_TEST((test_attr("x", r = lit('x'), attr, true)));

Note that it belongs in rule* and not in sequence.

K-ballo avatar Oct 26 '13 02:10 K-ballo

I just migrated X3 to the boost repository. Please have your pull request there. This repo is going away. (https://github.com/boostorg/spirit/tree/develop)

djowel avatar Mar 18 '14 23:03 djowel