diff --git a/include/boost/regex/regex_traits.hpp b/include/boost/regex/regex_traits.hpp index caae5887..6edb4b8c 100644 --- a/include/boost/regex/regex_traits.hpp +++ b/include/boost/regex/regex_traits.hpp @@ -536,7 +536,7 @@ private: #endif // Wide strings #endif // Win32 -#ifndef BOOST_NO_STD_LOCALE +#if !defined(BOOST_NO_STD_LOCALE) && !defined(BOOST_NO_STD_WSTREAMBUF) } // namspace boost diff --git a/src/cpp_regex_traits.cpp b/src/cpp_regex_traits.cpp index eff1999c..962d4531 100644 --- a/src/cpp_regex_traits.cpp +++ b/src/cpp_regex_traits.cpp @@ -25,7 +25,7 @@ #include -#ifndef BOOST_NO_STD_LOCALE +#if !defined(BOOST_NO_STD_LOCALE) && !defined(BOOST_NO_STD_WSTREAMBUF) # ifdef BOOST_MSVC # pragma warning(disable:4786 4702 4127 4244)