Opened 8 years ago

Last modified 8 years ago

#10548 new Feature Requests

Spirit.Lex does not support scoped enum

Reported by: mattia.penati@… 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)

example.cpp (1.4 KB ) - added by mattia.penati@… 8 years ago.
A minimal example

Download all attachments as: .zip

Change History (2)

by mattia.penati@…, 8 years ago

Attachment: example.cpp added

A minimal example

comment:1 by Joel de Guzman, 8 years ago

Owner: changed from Joel de Guzman to Hartmut Kaiser
Note: See TracTickets for help on using tickets.