Boost C++ Libraries: Ticket #8204: xpressive enum clashing with glx https://svn.boost.org/trac10/ticket/8204 <p> On Ubuntu 12.04, some header included by GL/glx.h seems to define a macro 'None', which replaces the enum by the same name in boost/xpressive/match_results.hpp at line 122. Therefore the following simple testcase fails to compile: </p> <pre class="wiki">#include &lt;GL/glx.h&gt; #include "boost/xpressive/xpressive.hpp" int main( int argc, char** argv ) { return 0; } </pre><p> Giving the following error with g++: </p> <pre class="wiki">In file included from ../workspace/Boost_1_53_0/boost/xpressive/detail/core/access.hpp:21:0, from ../workspace/Boost_1_53_0/boost/xpressive/detail/core/state.hpp:18, from ../workspace/Boost_1_53_0/boost/xpressive/detail/core/matcher/alternate_end_matcher.hpp:20, from ../workspace/Boost_1_53_0/boost/xpressive/detail/core/matchers.hpp:17, from ../workspace/Boost_1_53_0/boost/xpressive/regex_primitives.hpp:22, from ../workspace/Boost_1_53_0/boost/xpressive/xpressive_static.hpp:24, from ../workspace/Boost_1_53_0/boost/xpressive/xpressive.hpp:18, from test2.cpp:2: ../workspace/Boost_1_53_0/boost/xpressive/match_results.hpp:122:21: error: expected identifier before numeric constant ../workspace/Boost_1_53_0/boost/xpressive/match_results.hpp:122:21: error: expected ‘}’ before numeric constant ../workspace/Boost_1_53_0/boost/xpressive/match_results.hpp:122:21: error: expected unqualified-id before numeric constant ../workspace/Boost_1_53_0/boost/xpressive/match_results.hpp:132:57: error: ‘traits’ has not been declared ../workspace/Boost_1_53_0/boost/xpressive/match_results.hpp:132:63: error: expected ‘,’ or ‘...’ before ‘&lt;’ token ../workspace/Boost_1_53_0/boost/xpressive/match_results.hpp:163:63: error: ‘transform_op’ has not been declared ../workspace/Boost_1_53_0/boost/xpressive/match_results.hpp:194:5: error: ‘traits’ does not name a type ../workspace/Boost_1_53_0/boost/xpressive/match_results.hpp:195:5: error: ‘transform_op’ does not name a type - snip - </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8204 Trac 1.4.3 Eric Niebler Tue, 05 Mar 2013 05:53:26 GMT <link>https://svn.boost.org/trac10/ticket/8204#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8204#comment:1</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83303" title="avoid name clash with macro None in glx.h, refs #8204">[83303]</a>) avoid name clash with macro None in glx.h, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8204" title="#8204: Bugs: xpressive enum clashing with glx (closed: fixed)">#8204</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Eric Niebler</dc:creator> <pubDate>Sun, 10 Mar 2013 00:36:50 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8204#comment:2 https://svn.boost.org/trac10/ticket/8204#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> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83389" title="merge [83303] from trunk, fixes #8204">[83389]</a>) merge <a class="changeset" href="https://svn.boost.org/trac10/changeset/83303" title="avoid name clash with macro None in glx.h, refs #8204">[83303]</a> from trunk, fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8204" title="#8204: Bugs: xpressive enum clashing with glx (closed: fixed)">#8204</a> </p> Ticket