mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-27 01:22:37 -06:00
bit_field: Convert ToBool() into explicit operator bool
Gets rid of a TODO that is long overdue.
This commit is contained in:
parent
b4fdce0c2c
commit
6c3737a786
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue