1
0
Fork 0

bit_field: Convert ToBool() into explicit operator bool

Gets rid of a TODO that is long overdue.
This commit is contained in:
Lioncash 2018-08-21 06:39:42 -04:00 committed by fearlessTobi
parent b4fdce0c2c
commit 6c3737a786
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 {
FORCE_INLINE bool ToBool() const {
return Value() != 0; return Value() != 0;
} }