Ticket #7949: lexical_cast.hpp.diff

File lexical_cast.hpp.diff, 773 bytes (added by Peter Brockamp <p.brockamp@…>, 10 years ago)

Silence warning C4244 under VS2005

  • lexical_cast.hpp

     
    77# pragma once
    88#endif
    99
     10// Silence MS warnings like C4244: '+=' : conversion from 'int' to 'unsigned short', possible loss of data
     11#if defined(_MSC_VER)
     12#  pragma warning(push)
     13#  pragma warning(disable:4244)
     14#endif
     15
    1016// Boost lexical_cast.hpp header  -------------------------------------------//
    1117//
    1218// See http://www.boost.org/libs/conversion for documentation.
     
    25012507#undef BOOST_LCAST_THROW_BAD_CAST
    25022508#undef BOOST_LCAST_NO_WCHAR_T
    25032509
     2510#if defined(_MSC_VER)
     2511#  pragma warning(pop)
     2512#endif
     2513
    25042514#endif // BOOST_LEXICAL_CAST_INCLUDED
    2505