fix: error in Any2Bool
This commit is contained in:
@ -82,7 +82,9 @@ bool Any2Bool(const std::any &value) {
|
||||
return *ptr;
|
||||
} else if (auto ptr = std::any_cast<std::string>(&value)) {
|
||||
return (*ptr) != "";
|
||||
} else
|
||||
} else if (auto ptr = std::any_cast<NoneType>(&value))
|
||||
return false;
|
||||
else
|
||||
throw FatalError("Any2Bool: unknown type", 32);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user