Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3100: boost::math::binomial_coefficient causes Aborted (core dumped)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-05-27 17:47:36
#3100: boost::math::binomial_coefficient causes Aborted (core dumped)
----------------------------------------+-----------------------------------
Reporter: jhair.tocancipa_at_[hidden] | Owner: johnmaddock
Type: Bugs | Status: closed
Milestone: Boost 1.40.0 | Component: math
Version: Boost 1.38.0 | Severity: Problem
Resolution: wontfix | Keywords:
----------------------------------------+-----------------------------------
Changes (by johnmaddock):
* status: new => closed
* resolution: => wontfix
Comment:
This function, and the similar factorial functions are not intended to be
used with integer types: doing so is generally speaking unsafe, because
any non-trivial example will return a result too large to be represented
in an integer type.
I'll add a static-assertion to that effect so that in future this code
doesn't compile.
Regards, John Maddock.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3100#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:00 UTC