diff options
author | Justin Bassett <jbassett@google.com> | 2024-05-24 11:33:05 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-05-24 11:33:58 -0700 |
commit | 4a7c2ec65afca528226fd4a8fd514dda78572bda (patch) | |
tree | 6b415e82992b2f3399f95a9e0cbe34e0ac838b01 /absl/random/CMakeLists.txt | |
parent | 0ef5bc614d9447350222ad52e140d81a4785da07 (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.txt | 2 |
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 |