u128: Make Bit() a const-qualified member function
This function doesn't modify the struct members, so it can be made const.
This commit is contained in:
parent
b2e4c16ef8
commit
3ca18d8a6d
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ struct u128 {
|
|||
u64 upper = 0;
|
||||
|
||||
template<size_t bit_position>
|
||||
bool Bit() {
|
||||
bool Bit() const {
|
||||
static_assert(bit_position < 128);
|
||||
if constexpr (bit_position < 64) {
|
||||
return Common::Bit<bit_position>(lower);
|
||||
|
|
Loading…
Reference in a new issue