Ticket #4870: boost_1_42_0-DateTimeIsoParsingCheck.patch
File boost_1_42_0-DateTimeIsoParsingCheck.patch, 644 bytes (added by , 12 years ago) |
---|
-
boost/date_time/time_parsing.hpp
diff -Nur boost_1_42_0/boost/date_time/time_parsing.hpp boost_1_42_0.patched/boost/date_time/time_parsing.hpp
old new 153 153 std::string& first, 154 154 std::string& second) 155 155 { 156 int sep_pos = static_cast<int>(s.find(sep));156 std::string::size_type sep_pos = s.find(sep); 157 157 first = s.substr(0,sep_pos); 158 second = s.substr(sep_pos+1); 158 if (sep_pos!=std::string::npos) 159 second = s.substr(sep_pos+1); 159 160 return true; 160 161 } 161 162