diff --git a/GPU/Utils/GPUCommonBitSet.h b/GPU/Utils/GPUCommonBitSet.h index 11ac220935c9d..e4e8e87442681 100644 --- a/GPU/Utils/GPUCommonBitSet.h +++ b/GPU/Utils/GPUCommonBitSet.h @@ -74,8 +74,8 @@ class bitset return *this; } GPUd() constexpr bitset operator~() const { return (~v) & full_set; } - GPUd() constexpr bool operator==(const bitset b) { return v == b.v; } - GPUd() constexpr bool operator!=(const bitset b) { return v != b.v; } + GPUd() constexpr bool operator==(const bitset b) const { return v == b.v; } + GPUd() constexpr bool operator!=(const bitset b) const { return v != b.v; } GPUd() constexpr bool operator[](unsigned int i) const { return (v >> i) & 1u; }