diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-06 10:41:18 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-06 10:43:11 +0900 |
commit | f763a99a501650eff2c60288aa6f10ef916d769e (patch) | |
tree | 02af7e13f9a38c888ebf340fe764cbe7dae99da9 /boost/date_time/time_facet.hpp | |
parent | 5cde13f21d36c7224b0e13d11c4b49379ae5210d (diff) | |
download | boost-f763a99a501650eff2c60288aa6f10ef916d769e.tar.gz boost-f763a99a501650eff2c60288aa6f10ef916d769e.tar.bz2 boost-f763a99a501650eff2c60288aa6f10ef916d769e.zip |
Imported Upstream version 1.62.0upstream/1.62.0
Change-Id: I9d4c1ddb7b7d8f0069217ecc582700f9fda6dd4c
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'boost/date_time/time_facet.hpp')
-rw-r--r-- | boost/date_time/time_facet.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/boost/date_time/time_facet.hpp b/boost/date_time/time_facet.hpp index b9abedfba9..be6010c692 100644 --- a/boost/date_time/time_facet.hpp +++ b/boost/date_time/time_facet.hpp @@ -1131,9 +1131,10 @@ namespace date_time { if(sec == -1){ return check_special_value(sitr, stream_end, t, c); } - if (*itr == 'S') + if (*itr == 'S' || sitr == stream_end) break; - // %s is the same as %S%f so we drop through into %f + // %s is the same as %S%f so we drop through into %f if we are + // not at the end of the stream } case 'f': { |