Index: v4/basic_regex.hpp =================================================================== --- v4/basic_regex.hpp (revision 42336) +++ v4/basic_regex.hpp (revision 42366) @@ -36,8 +36,11 @@ namespace boost{ #ifdef BOOST_MSVC #pragma warning(push) -#pragma warning(disable : 4251 4231 4660 4800) +#pragma warning(disable : 4251 4231 4800) +#if (BOOST_MSVC < 1600) +#pragma warning(disable : 4660) #endif +#endif namespace re_detail{ Index: v4/match_results.hpp =================================================================== --- v4/match_results.hpp (revision 42336) +++ v4/match_results.hpp (revision 42366) @@ -33,8 +33,11 @@ namespace boost{ #ifdef BOOST_MSVC #pragma warning(push) -#pragma warning(disable : 4251 4231 4660) +#pragma warning(disable : 4251 4231) +#if (BOOST_MSVC < 1600) +#pragma warning(disable : 4660) #endif +#endif namespace re_detail{ Index: v4/instances.hpp =================================================================== --- v4/instances.hpp (revision 42336) +++ v4/instances.hpp (revision 42366) @@ -84,7 +84,10 @@ # ifdef BOOST_MSVC # pragma warning(push) -# pragma warning(disable : 4251 4231 4660) +# pragma warning(disable : 4251 4231) +# if (BOOST_MSVC < 1600) +# pragma warning(disable : 4660) +# endif # endif template class BOOST_REGEX_TEMPLATE_DECL basic_regex< BOOST_REGEX_CHAR_T BOOST_REGEX_TRAITS_T >; Index: v4/perl_matcher.hpp =================================================================== --- v4/perl_matcher.hpp (revision 42336) +++ v4/perl_matcher.hpp (revision 42366) @@ -344,8 +344,11 @@ #ifdef BOOST_MSVC #pragma warning(push) -#pragma warning(disable : 4251 4231 4660) +#pragma warning(disable : 4251 4231) +#if (BOOST_MSVC < 1600) +#pragma warning(disable : 4660) #endif +#endif template class perl_matcher Index: config.hpp =================================================================== --- config.hpp (revision 42336) +++ config.hpp (revision 42366) @@ -170,7 +170,10 @@ # define BOOST_REGEX_HAS_OTHER_WCHAR_T # ifdef BOOST_MSVC # pragma warning(push) -# pragma warning(disable : 4251 4231 4660) +# pragma warning(disable : 4251 4231) +# if (BOOST_MSVC < 1600) +# pragma warning(disable : 4660) +# endif # endif # if defined(_DLL) && defined(BOOST_MSVC) && (BOOST_MSVC < 1600) # include