Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11633: chrono IO may throw bad_cast
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-09-10 05:41:22
#11633: chrono IO may throw bad_cast
--------------------------------------------------+---------------------
Reporter: Sébastien Barthélémy <barthelemy@â¦> | Owner:
Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
Version: Boost 1.58.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------------------------+---------------------
Comment (by viboes):
For what I understand std::ios_base::imbue is not thread-safe.
Version 1 is bugged as it does an imbue if the facet is not present,
raising possible undefined behavior.
Version 2 duration operator<< doesn't imbues the facet by itself. If not
present, it uses duration_put.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11633#comment:3> 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:19 UTC