]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Refactor seed sequence constraints in <random>
authorJonathan Wakely <jwakely@redhat.com>
Tue, 4 Oct 2022 11:57:33 +0000 (12:57 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 4 Oct 2022 16:42:59 +0000 (17:42 +0100)
commit68ed966793526db02fe96605ba9c0f8bbfd59ef0
tree3afd48c912f90330f692e781de3eadc5b7c42a59
parente87879a9f5c2869de177c4dde2172f277e81ef1a
libstdc++: Refactor seed sequence constraints in <random>

Every use of _If_seed_seq in <random> and <ext/random> uses it with
enable_if. We can just move the enable_if into the helper alias instead
of repeating it everywhere.

libstdc++-v3/ChangeLog:

* include/bits/random.h (__is_seed_seq): Replace with ...
(_If_seed_seq_for): ... this.
* include/ext/random: Adjust to use _If_seed_seq_for.
libstdc++-v3/include/bits/random.h
libstdc++-v3/include/ext/random