Re: [Boost-bugs] [Boost C++ Libraries] #9236: Catch programmer errors with asserts, not exceptions

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9236: Catch programmer errors with asserts, not exceptions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-10-11 17:33:50


#9236: Catch programmer errors with asserts, not exceptions
-------------------------------+----------------------------
  Reporter: psiha | Owner: johnmaddock
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: multiprecision
   Version: Boost 1.54.0 | Severity: Optimization
Resolution: | Keywords:
-------------------------------+----------------------------

Comment (by johnmaddock):

 I believe this to be a true runtime error which should be checked and
 reported via an exception. Note that if you pass an unsigned integer as
 the exponent then the check is omitted, and in any case the cost of the
 check likely to be insignificant compared to the rest of the code.

 There are however some inconsistencies in the way these checks are
 applied, which I'll fix shortly.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9236#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