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:20:12
#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):
The following avoids the race, but breaks other functionalities
{{{
template <class CharT, class Traits, class Rep, class Period>
std::basic_ostream<CharT, Traits>&
operator<<(std::basic_ostream<CharT, Traits>& os, const duration<Rep,
Period>& d)
{
typedef duration_punct<CharT> Facet;
Facet f;
return os << d.count() << ' ' << f.template name<Period>(d.count());
}
}}}
I tried with version 2 and I was not able to reproduce the issue. Please
let me know.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11633#comment:2> 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