Ticket #1791: lexical_cast2.patch

File lexical_cast2.patch, 768 bytes (added by Richard Webb <richard.webb@…>, 13 years ago)
  • boost/lexical_cast.hpp

     
    11111111            typedef const T * type;
    11121112        };
    11131113
     1114
     1115#ifdef BOOST_MSVC
     1116# pragma warning( push )
     1117# pragma warning( disable : 4702 ) //unreachable code, line 1149
     1118#endif
     1119
    11141120        template< typename Target
    11151121                , typename Source
    11161122                , bool Unlimited // string representation of Source is unlimited
     
    11581164#endif
    11591165            return Target(); // normally never reached (throw_exception)
    11601166        }
     1167
     1168#ifdef BOOST_MSVC
     1169# pragma warning( pop )
     1170#endif
     1171
    11611172    }
    11621173
    11631174    template<typename Target, typename Source>