Index: lexical_cast.hpp =================================================================== --- lexical_cast.hpp (Revision 57771) +++ lexical_cast.hpp (Revision 57773) @@ -7,6 +7,12 @@ # pragma once #endif +// Silence MS warnings like C4244: '+=' : conversion from 'int' to 'unsigned short', possible loss of data +#if defined(_MSC_VER) +# pragma warning(push) +# pragma warning(disable:4244) +#endif + // Boost lexical_cast.hpp header -------------------------------------------// // // See http://www.boost.org/libs/conversion for documentation. @@ -2501,5 +2507,8 @@ #undef BOOST_LCAST_THROW_BAD_CAST #undef BOOST_LCAST_NO_WCHAR_T +#if defined(_MSC_VER) +# pragma warning(pop) +#endif + #endif // BOOST_LEXICAL_CAST_INCLUDED -