Subject: [Boost-bugs] [Boost C++ Libraries] #3192: sorted_erdos_renyi_iterator fails assertion for default value of "prob"
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-06-19 19:54:29
#3192: sorted_erdos_renyi_iterator fails assertion for default value of "prob"
--------------------------------------------------+-------------------------
Reporter: Michael Hansen <mihansen@â¦> | Owner: asutton
Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: graph
Version: Boost 1.39.0 | Severity: Problem
Keywords: |
--------------------------------------------------+-------------------------
The sorted_erdos_renyi_iterator constructor will fail an assertion in
geometric_distribution.hpp when the "prob" parameter is left with its
default value of 0. Changing the value of the parameter fixes the
problem.
Output from a Boost test run:
/usr/include/boost/random/geometric_distribution.hpp:44:
boost::geometric_distribution<IntType,
RealType>::geometric_distribution(const RealType&) [with IntType =
unsigned int, RealType = double]: Assertion `RealType(0) < _p && _p <
RealType(1)' failed.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3192> 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