diff options
| author | 2014-12-20 18:28:17 -0500 | |
|---|---|---|
| committer | 2014-12-21 10:58:55 -0500 | |
| commit | 0199a7d9ef26516779f73192dd41738ce4116c20 (patch) | |
| tree | 1b1529ae3d9e4e8e3d47d96893571a2eeb9fa4a2 /src/common/bit_field.h | |
| parent | Merge pull request #316 from yuriks/thread-handle (diff) | |
| download | yuzu-0199a7d9ef26516779f73192dd41738ce4116c20.tar.gz yuzu-0199a7d9ef26516779f73192dd41738ce4116c20.tar.xz yuzu-0199a7d9ef26516779f73192dd41738ce4116c20.zip | |
More warning cleanups
Diffstat (limited to 'src/common/bit_field.h')
| -rw-r--r-- | src/common/bit_field.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/bit_field.h b/src/common/bit_field.h index 3ec061e63..7c633f01f 100644 --- a/src/common/bit_field.h +++ b/src/common/bit_field.h | |||
| @@ -168,6 +168,12 @@ public: | |||
| 168 | } | 168 | } |
| 169 | } | 169 | } |
| 170 | 170 | ||
| 171 | // TODO: we may want to change this to explicit operator bool() if it's bug-free in VS2015 | ||
| 172 | __forceinline bool ToBool() const | ||
| 173 | { | ||
| 174 | return Value() != 0; | ||
| 175 | } | ||
| 176 | |||
| 171 | private: | 177 | private: |
| 172 | // StorageType is T for non-enum types and the underlying type of T if | 178 | // StorageType is T for non-enum types and the underlying type of T if |
| 173 | // T is an enumeration. Note that T is wrapped within an enable_if in the | 179 | // T is an enumeration. Note that T is wrapped within an enable_if in the |