[Boost-bugs] [Boost C++ Libraries] #11168: boost::date_time::subsecond_duration does not handle boost::date_time::special_values graceful

Subject: [Boost-bugs] [Boost C++ Libraries] #11168: boost::date_time::subsecond_duration does not handle boost::date_time::special_values graceful
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-04-05 10:03:41


#11168: boost::date_time::subsecond_duration does not handle
boost::date_time::special_values graceful
-------------------------+-------------------------------------------------
 Reporter: | Type: Bugs
  ingo.loehken@… | Milestone: To Be Determined
   Status: new | Version: Boost 1.57.0
Component: None | Keywords: posix_time, date_time, neg_infin,
 Severity: Problem | pos_infin, not_a_data_time, special_values
-------------------------+-------------------------------------------------
 Hi,

 I just was victim to using boost::date_time::millisec and others in an
 error prone way, by passing into special values like neg_infin as part of
 testing.

 For me it should at least avoid such abuse at compile time, because such
 errors are quite hard to find. I already patched our code, so plz find
 patch attached.

 Greetz, ILo.

 Ofc one may also allow to pass in those special values into
 subsecond_duration.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11168>
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:18 UTC