Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6059: uniform_real_distribution fails when _min = _max
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-10-26 16:36:37
#6059: uniform_real_distribution fails when _min = _max
----------------------------------------+-----------------------------------
Reporter: dario.izzo@⦠| Owner: steven_watanabe
Type: Bugs | Status: new
Milestone: To Be Determined | Component: random
Version: Boost 1.47.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------------+-----------------------------------
Comment (by dario.izzo@â¦):
OK, then if this is a design choice, it would be nice to have a warning or
an exception be thrown rather then an infinite loop produced (also because
the behavior has changed since boost 1.46 (and my code was counting on the
previous behavior :)
NOTE: I can actually see many reasons to allow min==max and return min,
but I guess this choice has already been made ....
Thanks for taking the time to answer so promptly
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6059#comment:2> 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:07 UTC