Skip to content

Commit 5883346

Browse files
authored
fix: extract shift as constexpr instead of consteval (#926)
Hopefully fix a compiler error in clang 14 by switching consteval to constexpr
1 parent 1b3d51f commit 5883346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/include/detray/utils/bit_encoder.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class bit_encoder {
6060
///
6161
/// @note undefined behaviour for mask == 0 which we should not have.
6262
DETRAY_HOST_DEVICE
63-
static consteval int extract_shift(value_t mask) noexcept {
63+
static constexpr int extract_shift(value_t mask) noexcept {
6464
return __builtin_ctzll(mask);
6565
}
6666
};

0 commit comments

Comments
 (0)