meta: use the vtable to implement operator bool

This commit is contained in:
Michele Caini
2024-11-02 00:00:41 +01:00
parent 331b82ed8e
commit ed7b1ab8a1

View File

@@ -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 {