libstdc++: Implement LWG 3150 for std::uniform_random_bit_generator
authorJonathan Wakely <jwakely@redhat.com>
Sat, 15 Feb 2020 08:58:43 +0000 (08:58 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Sat, 15 Feb 2020 10:24:57 +0000 (10:24 +0000)
commit5b1d588509551291f4028497858ee9e04ce0bdee
tree0119e5b09bc7c9e771229f38864096a213831305
parent458c8d6459c4005fc9886b6e25d168a6535ac415
libstdc++: Implement LWG 3150 for std::uniform_random_bit_generator

* include/bits/random.h (uniform_random_bit_generator): Require min()
and max() to be constant expressions and min() to be less than max().
* testsuite/26_numerics/random/concept.cc: Check additional cases.
* testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error lineno.
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/random.h
libstdc++-v3/testsuite/26_numerics/random/concept.cc
libstdc++-v3/testsuite/26_numerics/random/pr60037-neg.cc