Ticket #1791: lexical_cast.patch

File lexical_cast.patch, 822 bytes (added by Richard Webb <richard.webb@…>, 14 years ago)
  • lexical_cast.hpp

     
    10991099            typedef const T * type;
    11001100        };
    11011101
     1102
     1103#ifdef BOOST_MSVC
     1104# pragma warning( push )
     1105# pragma warning( disable : 4702 ) //unreachable code, line 1149
     1106#endif
     1107
    11021108        template< typename Target
    11031109                , typename Source
    11041110                , bool Unlimited // string representation of Source is unlimited
     
    11421148            throw_exception(bad_lexical_cast(typeid(Source), typeid(Target)));
    11431149            return Target(); // normally never reached (throw_exception)
    11441150        }
     1151
     1152#ifdef BOOST_MSVC
     1153# pragma warning( pop )
     1154#endif
     1155
    11451156    }
    11461157
    11471158    template<typename Target, typename Source>