This is an internal reminder for an issue which must be fixed before delivering the discrete distributions (geometric, poisson, binomial, in particular): when, in operator(), the floating point result exceeds the max integer value of the return type the value must be rejected.
Will fix as soon as I'm nack from a travel...
Subject: Bug 29520 Author: paolo Date: Sun Oct 29 10:49:07 2006 New Revision: 118135 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118135 Log: 2006-10-29 Paolo Carlini <pcarlini@suse.de> PR libstdc++/29520 * include/tr1/random (geometric_distribution<>:: operator()(_UniformRandomNumberGenerator&)): Only declare. * include/tr1/random.tcc (geometric_distribution<>:: operator()(_UniformRandomNumberGenerator&), poisson_distribution<>::operator()(_UniformRandomNumberGenerator&), binomial_distribution<>::operator()(_UniformRandomNumberGenerator&)): Reject candidate floating point values not convertible to the result_type. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/tr1/random trunk/libstdc++-v3/include/tr1/random.tcc
Subject: Bug 29520 Author: paolo Date: Sun Oct 29 10:49:30 2006 New Revision: 118136 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118136 Log: 2006-10-29 Paolo Carlini <pcarlini@suse.de> PR libstdc++/29520 * include/tr1/random (geometric_distribution<>:: operator()(_UniformRandomNumberGenerator&)): Only declare. * include/tr1/random.tcc (geometric_distribution<>:: operator()(_UniformRandomNumberGenerator&), poisson_distribution<>::operator()(_UniformRandomNumberGenerator&), binomial_distribution<>::operator()(_UniformRandomNumberGenerator&)): Reject candidate floating point values not convertible to the result_type. Modified: branches/gcc-4_2-branch/libstdc++-v3/ChangeLog branches/gcc-4_2-branch/libstdc++-v3/include/tr1/random branches/gcc-4_2-branch/libstdc++-v3/include/tr1/random.tcc
Fixed for 4.2.0.