diff --git a/include/boost/lexical_cast.hpp b/include/boost/lexical_cast.hpp index 0ef3024..2b1d95a 100644 --- a/include/boost/lexical_cast.hpp +++ b/include/boost/lexical_cast.hpp @@ -1156,6 +1156,12 @@ namespace boost { namespace detail // lcast_ret_float { + +// Silence buggy MS warnings like C4244: '+=' : conversion from 'int' to 'unsigned short', possible loss of data +#if defined(_MSC_VER) && (_MSC_VER == 1400) +# pragma warning(push) +# pragma warning(disable:4244) +#endif template struct mantissa_holder_type { @@ -1397,6 +1403,10 @@ namespace boost { return true; } +// Unsilence buggy MS warnings like C4244: '+=' : conversion from 'int' to 'unsigned short', possible loss of data +#if defined(_MSC_VER) && (_MSC_VER == 1400) +# pragma warning(pop) +#endif } namespace detail // stl_buf_unlocker