| Index: src/utils.h
|
| diff --git a/src/utils.h b/src/utils.h
|
| index da7a1d979c4ad572714a03f79d637864953b0f34..c3c1396123753437acdaa2dd934a205e85b5bd11 100644
|
| --- a/src/utils.h
|
| +++ b/src/utils.h
|
| @@ -204,6 +204,8 @@ inline int StrLength(const char* string) {
|
| template<class T, int shift, int size>
|
| class BitField {
|
| public:
|
| + typedef T ValueType;
|
| +
|
| // Tells whether the provided value fits into the bit field.
|
| static bool is_valid(T value) {
|
| return (static_cast<uint32_t>(value) & ~((1U << (size)) - 1)) == 0;
|
|
|