This commit is contained in:
skypjack
2025-10-17 16:41:27 +02:00
parent bee74568e5
commit de054655ab
+1
View File
@@ -476,6 +476,7 @@ public:
* @return False if the two objects differ in their content, true otherwise.
*/
[[nodiscard]] bool operator==(const basic_any &other) const noexcept {
// it could be a call across boundaries, but still for the same type
if(vtable && ((vtable == other.vtable) || has_value(other.info()))) {
return (vtable(request::compare, *this, other.data()) != nullptr);
}