Boost Spirit X3: “Attribute does not have the expected size,” but why does it care?
问题 I am trying to write a parser with Spirit X3, but I haven't gotten very far because I'm running into a compilation error that I can't figure out. I think I know what the compiler is complaining about, but what I don't understand is why it cares. The following code compiles (clang 3.9, Boost 1.62.0) and works. (I realize it's structured poorly and that there are built-in parsers for constants; I'm just trying to demonstrate the issue.) #define BOOST_SPIRIT_X3_DEBUG #include <iostream> #include