[Boost-bugs] [Boost C++ Libraries] #8691: iostate is not checked after scan_keyword call

Subject: [Boost-bugs] [Boost C++ Libraries] #8691: iostate is not checked after scan_keyword call
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-13 10:33:09


#8691: iostate is not checked after scan_keyword call
-------------------------------------+---------------------
 Reporter: tmmikolajczyk@… | Owner: viboes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: chrono
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------+---------------------
 Implementation of the duration_get::do_get_n_d_valid_unit and
 duration_get::do_get_valid_unit methods calls chrono_detail::scan_keyword
 and then unconditionally calls the facet.match_n_d_valid_unit and
 facet.match_valid_unit methods appropriately, no matter what is the value
 of the iostate flag.
 IMO, the function should just return value "i" if iostate is not good
 after the scan_keyword call.
 The proposed change is attached as a patch. The patch fixes also typos in
 doxygen comments of those functions.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8691>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:13 UTC