Merge pull request #4161 from FearlessTobi/port-1139

Port #1139 from yuzu: "bit_field: Convert ToBool() into explicit operator bool"
This commit is contained in:
Merry 2018-09-02 09:53:50 +01:00 committed by GitHub
commit b130dd6842
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 9 deletions

View file

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