Make emulator_object bool operator explicit

This commit is contained in:
momo5502
2025-02-09 12:53:07 +01:00
parent 2f8b623774
commit 9d71a3bbf2

View File

@@ -84,7 +84,7 @@ class emulator_object
return reinterpret_cast<T*>(this->address_);
}
operator bool() const
explicit operator bool() const
{
return this->address_ != 0;
}