diff --git a/include/boost/regex/config.hpp b/include/boost/regex/config.hpp index 5b81f3aa..5022bbde 100644 --- a/include/boost/regex/config.hpp +++ b/include/boost/regex/config.hpp @@ -195,7 +195,7 @@ using std::distance; ****************************************************************************/ #ifdef __cplusplus -#if defined(BOOST_MSVC) && (BOOST_MSVC >= 1300) +#if defined(BOOST_MSVC) && (BOOST_MSVC >= 1300) && !defined(BOOST_REGEX_V3) # define BOOST_REGEX_HAS_SHORT_WCHAR_T namespace boost{ typedef __wchar_t regex_wchar_type; } #else