diff options
Diffstat (limited to '')
| -rw-r--r-- | src/common/bit_field.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/bit_field.h b/src/common/bit_field.h index 65e357dec..732201de7 100644 --- a/src/common/bit_field.h +++ b/src/common/bit_field.h | |||
| @@ -178,8 +178,7 @@ public: | |||
| 178 | return ExtractValue(storage); | 178 | return ExtractValue(storage); |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | // TODO: we may want to change this to explicit operator bool() if it's bug-free in VS2015 | 181 | constexpr explicit operator bool() const { |
| 182 | constexpr FORCE_INLINE bool ToBool() const { | ||
| 183 | return Value() != 0; | 182 | return Value() != 0; |
| 184 | } | 183 | } |
| 185 | 184 | ||