diff --git a/include/boost/regex/config.hpp b/include/boost/regex/config.hpp index 768589d1..4dbf7f4b 100644 --- a/include/boost/regex/config.hpp +++ b/include/boost/regex/config.hpp @@ -109,7 +109,7 @@ // If there isn't good enough wide character support then there will // be no wide character regular expressions: // -#if defined(BOOST_NO_CWCHAR) || defined(BOOST_NO_CWCTYPE) || defined(BOOST_NO_STD_WSTRING) +#if (defined(BOOST_NO_CWCHAR) || defined(BOOST_NO_CWCTYPE) || defined(BOOST_NO_STD_WSTRING)) && !defined(BOOST_NO_WREGEX) # define BOOST_NO_WREGEX #else # if defined(__sgi) && defined(__SGI_STL_PORT)