Re: [Boost-bugs] [Boost C++ Libraries] #9075: Devision by zero in boost/date_time/int_adapter.hpp

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9075: Devision by zero in boost/date_time/int_adapter.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-10-15 18:42:48


#9075: Devision by zero in boost/date_time/int_adapter.hpp
-------------------------------------------------+-------------------------
  Reporter: Alexander Drichel | Owner: az_sw_dude
  <alexander.drichel@…> | Status: new
      Type: Bugs | Component: date_time
 Milestone: To Be Determined | Severity: Problem
   Version: Boost 1.54.0 | Keywords:
Resolution: |
-------------------------------------------------+-------------------------

Comment (by marshall):

 Note that just above this (on lines 358-362) there is:

 {{{
       if(rhs != 0)
       {
         return mult_div_specials(rhs);
       }
       else { // let divide by zero blow itself up
         return int_adapter<int_type>(value_ % rhs.value_);
 }}}

 so I think that this is deliberate.

 I don't know what *should* happen here.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9075#comment:1>
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:14 UTC