Made bitflags bool cast operator explicit.
This commit is contained in:
@@ -68,7 +68,7 @@ struct BitFlags
|
||||
return copy;
|
||||
}
|
||||
|
||||
constexpr operator bool() const {
|
||||
explicit constexpr operator bool() const {
|
||||
for (std::size_t idx = 0; idx < sizeof(TBits); ++idx) {
|
||||
if (*(std::bit_cast<const std::byte*>(asBits()) + idx) != std::byte(0)) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user