Opened 7 years ago

Closed 5 years ago

#11540 closed Bugs (fixed)

static lexer compilation fail

Reported by: gkorolev@… Owned by: Joel de Guzman
Milestone: To Be Determined Component: spirit
Version: Boost 1.59.0 Severity: Problem
Keywords: Cc:

Description

in MSVC generated lexer produce error messages:

error C2001: newline in constant
error C2137: empty character constant
etc...

error occurs because missing escape character for a new line const

generate_static.hpp

os_ << "            bol = (index == '\n') ? true : false;\n";

Attachments (1)

generate_static.hpp.patch (1.7 KB ) - added by gkorolev@… 7 years ago.

Download all attachments as: .zip

Change History (3)

by gkorolev@…, 7 years ago

Attachment: generate_static.hpp.patch added

comment:1 by Nikita Kniazev <nok.raven@…>, 5 years ago

comment:2 by Joel de Guzman, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.