diff --git boost/chrono/io/duration_get.hpp boost/chrono/io/duration_get.hpp
index 6014603..938cb73 100644
|
|
namespace boost
|
467 | 467 | * translation in other contexts, as e.g. days and weeks. |
468 | 468 | * |
469 | 469 | * @param facet the duration_units facet |
470 | | * @param s start input stream iterator. |
| 470 | * @param i start input stream iterator. |
471 | 471 | * @param e end input stream iterator. |
472 | 472 | * @param ios a reference to a ios_base. |
473 | 473 | * @param err the ios_base state. |
… |
… |
namespace boost
|
484 | 484 | const string_type* k = chrono_detail::scan_keyword(i, e, units, units_end, |
485 | 485 | //~ std::use_facet<std::ctype<CharT> >(loc), |
486 | 486 | err); |
| 487 | if (err & (std::ios_base::badbit | std::ios_base::failbit)) |
| 488 | { |
| 489 | return i; |
| 490 | } |
487 | 491 | if (!facet.match_n_d_valid_unit(k)) |
488 | 492 | { |
489 | 493 | err |= std::ios_base::failbit; |
… |
… |
namespace boost
|
499 | 503 | * translation in other contexts, as e.g. days and weeks. |
500 | 504 | * |
501 | 505 | * @param facet the duration_units facet |
502 | | * @param s start input stream iterator. |
| 506 | * @param i start input stream iterator. |
503 | 507 | * @param e end input stream iterator. |
504 | 508 | * @param ios a reference to a ios_base. |
505 | 509 | * @param err the ios_base state. |
… |
… |
namespace boost
|
519 | 523 | const string_type* k = chrono_detail::scan_keyword(i, e, units, units_end, |
520 | 524 | //~ std::use_facet<std::ctype<CharT> >(loc), |
521 | 525 | err); |
522 | | |
| 526 | if (err & (std::ios_base::badbit | std::ios_base::failbit)) |
| 527 | { |
| 528 | return i; |
| 529 | } |
523 | 530 | if (!facet.match_valid_unit(k, rt)) |
524 | 531 | { |
525 | 532 | err |= std::ios_base::failbit; |