yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

Merge pull request #1139 from lioncash/bitfield

bit_field: Convert ToBool() into explicit operator bool
This commit is contained in:
bunnei 2018-08-21 10:21:19 -04:00 committed by GitHub
commit 37f2ec6fc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -178,8 +178,7 @@ public:
return ExtractValue(storage); return ExtractValue(storage);
} }
// TODO: we may want to change this to explicit operator bool() if it's bug-free in VS2015 constexpr explicit operator bool() const {
constexpr FORCE_INLINE bool ToBool() const {
return Value() != 0; return Value() != 0;
} }