summaryrefslogtreecommitdiff
path: root/absl/random/bernoulli_distribution_test.cc
diff options
context:
space:
mode:
authorGravatar Justin Bassett <jbassett@google.com>2024-05-24 11:33:05 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2024-05-24 11:33:58 -0700
commit4a7c2ec65afca528226fd4a8fd514dda78572bda (patch)
tree6b415e82992b2f3399f95a9e0cbe34e0ac838b01 /absl/random/bernoulli_distribution_test.cc
parent0ef5bc614d9447350222ad52e140d81a4785da07 (diff)
Forbid absl::Uniform<absl::int128>(gen)
std::is_signed can't be specialized, so this actually lets through non-unsigned types where the types are not language primitives (i.e. it lets absl::int128 through). However, std::numeric_limits can be specialized, and is indeed specialized, so we can use that instead. PiperOrigin-RevId: 636983590 Change-Id: Ic993518e9cac7c453b08deaf3784b6fba49f15d0
Diffstat (limited to 'absl/random/bernoulli_distribution_test.cc')
0 files changed, 0 insertions, 0 deletions