diff --git a/src/common/bit_util.h b/src/common/bit_util.h index e7ec95b1..0d59f416 100644 --- a/src/common/bit_util.h +++ b/src/common/bit_util.h @@ -50,7 +50,7 @@ constexpr bool Bit(const T value) { /// Extracts a single bit at bit_position from value of type T. template -constexpr bool Bit(size_t bit_position, const T value) { +inline bool Bit(size_t bit_position, const T value) { ASSERT_MSG(bit_position < BitSize(), "bit_position must be smaller than size of T"); return ((value >> bit_position) & 1) != 0;