meta: use the vtable to implement operator bool
This commit is contained in:
@@ -1636,7 +1636,7 @@ public:
|
||||
}
|
||||
|
||||
[[nodiscard]] explicit operator bool() const noexcept {
|
||||
return static_cast<bool>(handle);
|
||||
return (vtable != nullptr);
|
||||
}
|
||||
|
||||
[[nodiscard]] bool operator==(const meta_iterator &other) const noexcept {
|
||||
@@ -1712,7 +1712,7 @@ public:
|
||||
}
|
||||
|
||||
[[nodiscard]] explicit operator bool() const noexcept {
|
||||
return static_cast<bool>(handle);
|
||||
return (vtable != nullptr);
|
||||
}
|
||||
|
||||
[[nodiscard]] bool operator==(const meta_iterator &other) const noexcept {
|
||||
|
||||
Reference in New Issue
Block a user