Opened 8 years ago
Last modified 8 years ago
#10548 new Feature Requests
Spirit.Lex does not support scoped enum
Reported by: | Owned by: | Hartmut Kaiser | |
---|---|---|---|
Milestone: | To Be Determined | Component: | spirit |
Version: | Boost 1.55.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Currently the class boost::spirit::lex::lexer store the variable next_token_id as a std::size_t, but the scoped enumeration types (c++11) are not implicitly convertible to integral types. This generetas a lot of errors, I have not a deep knowledge of Spirit.Lex source code, but probably it is necessary to change the code not only in the lexer class, but also in other points. Sorry, but I am not able to patch the code. I attach a very simple example which shows this issue.
Attachments (1)
Change History (2)
by , 8 years ago
Attachment: | example.cpp added |
---|
comment:1 by , 8 years ago
Owner: | changed from | to
---|
Note:
See TracTickets
for help on using tickets.
A minimal example