Boost C++ Libraries: Ticket #11540: static lexer compilation fail https://svn.boost.org/trac10/ticket/11540 <p> in MSVC generated lexer produce error messages: </p> <p> error C2001: newline in constant<br /> error C2137: empty character constant<br /> etc... </p> <p> error occurs because missing escape character for a new line const </p> <p> generate_static.hpp </p> <div class="wiki-code"><div class="code"><pre><span class="n">os_</span> <span class="o">&lt;&lt;</span> <span class="s">&quot; bol = (index == &#39;</span><span class="se">\n</span><span class="s">&#39;) ? true : false;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">;</span> </pre></div></div> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11540 Trac 1.4.3 gkorolev@… Sun, 16 Aug 2015 20:53:54 GMT attachment set https://svn.boost.org/trac10/ticket/11540 https://svn.boost.org/trac10/ticket/11540 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">generate_static.hpp.patch</span> </li> </ul> Ticket Nikita Kniazev <nok.raven@…> Fri, 15 Dec 2017 13:58:17 GMT <link>https://svn.boost.org/trac10/ticket/11540#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11540#comment:1</guid> <description> <p> Fixed in <a class="ext-link" href="https://github.com/boostorg/spirit/pull/324"><span class="icon">​</span>https://github.com/boostorg/spirit/pull/324</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Joel de Guzman</dc:creator> <pubDate>Sun, 17 Dec 2017 23:45:17 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11540#comment:2 https://svn.boost.org/trac10/ticket/11540#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket