Define std::uniform_random_bit_generator concept for C++20
authorJonathan Wakely <jwakely@redhat.com>
Thu, 24 Oct 2019 09:35:07 +0000 (10:35 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 24 Oct 2019 09:35:07 +0000 (10:35 +0100)
commitbbf0495dd2b583c54d5ff591f4f1351f74d98bf9
tree16eac55ab9b08e67dcd8accabcd9157f2e548ac9
parent8f4f98f617c117919ccf0abc324eb2e431e8e0b0
Define std::uniform_random_bit_generator concept for C++20

* include/bits/random.h (uniform_random_bit_generator): Define for
C++20.
* testsuite/26_numerics/random/concept.cc: New test.
* testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error line.

From-SVN: r277369
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/random.h
libstdc++-v3/testsuite/26_numerics/random/concept.cc [new file with mode: 0644]
libstdc++-v3/testsuite/26_numerics/random/pr60037-neg.cc