mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 19:15:46 +00:00
bit_field: Convert ToBool() into explicit operator bool
Gets rid of a TODO that is long overdue.
This commit is contained in:
parent
cd3cf87aaa
commit
d6812d9e92
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue