id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 8204,xpressive enum clashing with glx,benjamin.prestele@…,Eric Niebler,"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: {{{ #include #include ""boost/xpressive/xpressive.hpp"" int main( int argc, char** argv ) { return 0; } }}} Giving the following error with g++: {{{ 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 ‘<’ 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 - }}} ",Bugs,closed,To Be Determined,xpressive,Boost 1.53.0,Problem,fixed,,