1.70 change

Dan Bloomquist <[email protected]> Thu, 18 Apr 2019 19:28:30 -0700
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
I've just recently moved from 1.68 to 1.70 I've also started using 
VS2019, I actually bought it thinking everything would be ok as my trial 
of VS2017 was working out.

So now I'm weeding through the changes... There are more, but to start 
with in sequence.hpp, line 135, this has been added:

         static_assert(is_same<traits::tuple_attribute, 
attr_category>::value,
             "The parser expects tuple-like attribute type");

For reasons I may have not should have done, I dug into the namespace 
x3::traits and added my own container handler, so there is no fusion 
structure declared for my structure. I mean, I could just comment the 
lines, tried that. But then there are more fusion expectation 
expectations down the line. The simpler example code is at:
<https://github.com/lakeweb/BXLReader>

I have a KiCAD parser that does a whole lot more of this stuff. It is 
something I would do regularly as it makes the kleene on a set of 
optionals pretty simple.

I could add BOOST_FUSION_ADAPT_STRUCT for the structure but I think I'd 
play hell getting x3 to believe the size is correct. At least, I am so 
far. With my traits hack, I don't need the fusion adapter.

Thanks, Dan.



_______________________________________________
Spirit-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spirit-general