aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authornechda <nechda@yandex-team.com>2024-09-03 08:38:33 +0300
committernechda <nechda@yandex-team.com>2024-09-03 08:50:55 +0300
commitd0a08cdc9c4c0b197b2c2cceac2a18a95a535124 (patch)
tree40641cd215d428418eb01ccae8df21e0ec14b6aa /contrib
parent40e21d90e24de76791e5fea962ebdc26b1515cf0 (diff)
downloadydb-d0a08cdc9c4c0b197b2c2cceac2a18a95a535124.tar.gz
Try to help nvcc prase template args
1260cdb08c38fed00bee24793f2ff23d83f05218
Diffstat (limited to 'contrib')
-rw-r--r--contrib/restricted/abseil-cpp-tstring/y_absl/container/internal/btree.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/container/internal/btree.h b/contrib/restricted/abseil-cpp-tstring/y_absl/container/internal/btree.h
index 64f7a068b1..c30e30149d 100644
--- a/contrib/restricted/abseil-cpp-tstring/y_absl/container/internal/btree.h
+++ b/contrib/restricted/abseil-cpp-tstring/y_absl/container/internal/btree.h
@@ -436,10 +436,11 @@ struct common_params : common_policy_traits<SlotPolicy> {
// This is an integral type large enough to hold as many slots as will fit a
// node of TargetNodeSize bytes.
+ static constexpr bool fit_cond =
+ kNodeSlotSpace / sizeof(slot_type) >
+ std::numeric_limits<uint8_t>::max();
using node_count_type =
- y_absl::conditional_t<(kNodeSlotSpace / sizeof(slot_type) >
- (std::numeric_limits<uint8_t>::max)()),
- uint16_t, uint8_t>; // NOLINT
+ y_absl::conditional_t<fit_cond, uint16_t, uint8_t>; // NOLINT
};
// An adapter class that converts a lower-bound compare into an upper-bound