Ticket #3607: boost-date_time-parse_ptime_with_format.patch

File boost-date_time-parse_ptime_with_format.patch, 786 bytes (added by Thomas.Lemm@…, 13 years ago)

the patch

  • time_facet.hpp

     
    2727#include <boost/date_time/date_facet.hpp>
    2828#include <boost/date_time/string_convert.hpp>
    2929#include <boost/date_time/special_defs.hpp>
     30#include <boost/date_time/gregorian/greg_month.hpp>
    3031
    3132namespace boost {
    3233namespace date_time {
     
    11721173             
    11731174          }
    11741175          else {  //skip past chars in format and in buffer
     1176                if( sitr != stream_end && *itr != *sitr ) {
     1177                            throw std::exception(); // mismatch in seperater characters found
     1178                        }
     1179
    11751180            ++itr;
    11761181            // set use_current_char when sitr is already
    11771182            // pointing at the next character to process