diff --git a/include/boost/regex/v4/regex_compile.hpp b/include/boost/regex/v4/regex_compile.hpp index e1579a90..af9411a2 100644 --- a/include/boost/regex/v4/regex_compile.hpp +++ b/include/boost/regex/v4/regex_compile.hpp @@ -71,12 +71,14 @@ struct is_big_char { typedef typename traits::uchar_type traits_uchar_type; typedef typename traits::size_type traits_size_type; +#if !BOOST_WORKAROUND(BOOST_MSVC, <= 1200) static bool test(char) { return false; } static bool test(unsigned char) { return false; } static bool test(signed char) { return false; } +#endif template static bool test(charT c) { return (traits_size_type)(traits_uchar_type)c >= 256; } };