aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2009-06-19 17:49:31 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2009-06-19 17:49:31 +0000
commit9b88236b3440aacc4f3e0d1ef36bcf680fc04a4a (patch)
treea1a1417977e2e3064266363209e102fb113fa755 /gcc
parentf8dd9e0de06aefc5722e0772bbb0d42427b867ef (diff)
downloadgcc-9b88236b3440aacc4f3e0d1ef36bcf680fc04a4a.zip
gcc-9b88236b3440aacc4f3e0d1ef36bcf680fc04a4a.tar.gz
gcc-9b88236b3440aacc4f3e0d1ef36bcf680fc04a4a.tar.bz2
random.h (_Adaptor): Simplify for _DInputType always a floating point type.
2009-06-19 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/random.h (_Adaptor): Simplify for _DInputType always a floating point type. (uniform_int_distribution<>::uniform_int_distribution(_IntType, _IntType)): Fix second default argument. (uniform_int_distribution<>::_M_call): Remove. (uniform_int_distribution<>::operator()(_UniformRandomNumberGenerator&, const param_type&)): Only declare. * include/bits/random.tcc (uniform_int_distribution<>::_M_call( _UniformRandomNumberGenerator&, result_type, result_type, true_type): Remove. uniform_int_distribution<>::operator()(_UniformRandomNumberGenerator&, const param_type&): Define here. (geometric_distribution<>::operator()(_UniformRandomNumberGenerator&, const param_type&), discrete_distribution<>::operator() (_UniformRandomNumberGenerator&, const param_type&), piecewise_constant_distribution<>::operator() (_UniformRandomNumberGenerator&, const param_type&), piecewise_linear_distribution<>::operator() (_UniformRandomNumberGenerator&, const param_type&)): Use double as the second template argument of _Adaptor. * testsuite/26_numerics/random/uniform_int_distribution/cons/ default.cc: Adjust. From-SVN: r148720
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions