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
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;
}