Lars Gullik Bjønnes wrote: > | Why user.hpp? Changes to this file will never make it back into > | boost. (It says so in the commentary at the top of the file.) >> > | It seems to me that > | select_platform_config.hpp > | or > | select_compiler_config.hpp > | would be more appropriate. > > I am not sure if boost wants it at all. > but sure... send them a mail and ask.
Actually, I looked at the boost/regex/config.hpp file. It already has code like: #if defined(__GNUC__) && (defined(_WIN32) || defined(__CYGWIN__)) // gcc on win32 has problems merging switch statements in templates: # define BOOST_REGEX_NO_TEMPLATE_SWITCH_MERGE // gcc on win32 has problems if you include <windows.h> // (sporadically generates bad code). # define BOOST_REGEX_USE_C_LOCALE # define BOOST_REGEX_NO_W32 #endif so it seems to me that this is the correct place to put JMarc's patch. -- Angus