Ticket #4870: boost_1_42_0-DateTimeIsoParsingCheck.patch

File boost_1_42_0-DateTimeIsoParsingCheck.patch, 644 bytes (added by peter.klotz@…, 12 years ago)

Patch against Boost 1.42.0

  • 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  
    153153        std::string& first,
    154154        std::string& second)
    155155  {
    156     int sep_pos = static_cast<int>(s.find(sep));
     156    std::string::size_type sep_pos = s.find(sep);
    157157    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);
    159160    return true;
    160161  }
    161162