summaryrefslogtreecommitdiff
path: root/absl/random/CMakeLists.txt
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/CMakeLists.txt
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/CMakeLists.txt')
-rw-r--r--absl/random/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/absl/random/CMakeLists.txt b/absl/random/CMakeLists.txt
index 56bbfd81..af91d1a4 100644
--- a/absl/random/CMakeLists.txt
+++ b/absl/random/CMakeLists.txt
@@ -288,6 +288,8 @@ absl_cc_test(
DEPS
absl::random_distributions
absl::random_random
+ absl::type_traits
+ absl::int128
absl::random_internal_distribution_test_util
GTest::gmock
GTest::gtest_main