Ticket #1791: lexical_cast.patch
File lexical_cast.patch, 822 bytes (added by , 14 years ago) |
---|
-
lexical_cast.hpp
1099 1099 typedef const T * type; 1100 1100 }; 1101 1101 1102 1103 #ifdef BOOST_MSVC 1104 # pragma warning( push ) 1105 # pragma warning( disable : 4702 ) //unreachable code, line 1149 1106 #endif 1107 1102 1108 template< typename Target 1103 1109 , typename Source 1104 1110 , bool Unlimited // string representation of Source is unlimited … … 1142 1148 throw_exception(bad_lexical_cast(typeid(Source), typeid(Target))); 1143 1149 return Target(); // normally never reached (throw_exception) 1144 1150 } 1151 1152 #ifdef BOOST_MSVC 1153 # pragma warning( pop ) 1154 #endif 1155 1145 1156 } 1146 1157 1147 1158 template<typename Target, typename Source>