Skip to content

Commit d0a08cd

Browse files
committed
Try to help nvcc prase template args
1260cdb08c38fed00bee24793f2ff23d83f05218
1 parent 40e21d9 commit d0a08cd

File tree

1 file changed

+4
-3
lines changed
  • contrib/restricted/abseil-cpp-tstring/y_absl/container/internal

1 file changed

+4
-3
lines changed

contrib/restricted/abseil-cpp-tstring/y_absl/container/internal/btree.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,10 +436,11 @@ struct common_params : common_policy_traits<SlotPolicy> {
436436

437437
// This is an integral type large enough to hold as many slots as will fit a
438438
// node of TargetNodeSize bytes.
439+
static constexpr bool fit_cond =
440+
kNodeSlotSpace / sizeof(slot_type) >
441+
std::numeric_limits<uint8_t>::max();
439442
using node_count_type =
440-
y_absl::conditional_t<(kNodeSlotSpace / sizeof(slot_type) >
441-
(std::numeric_limits<uint8_t>::max)()),
442-
uint16_t, uint8_t>; // NOLINT
443+
y_absl::conditional_t<fit_cond, uint16_t, uint8_t>; // NOLINT
443444
};
444445

445446
// An adapter class that converts a lower-bound compare into an upper-bound

0 commit comments

Comments
 (0)