skypjack 10 月之前
父節點
當前提交
de054655ab
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/entt/core/any.hpp

+ 1 - 0
src/entt/core/any.hpp

@@ -476,6 +476,7 @@ public:
      * @return False if the two objects differ in their content, true otherwise.
      * @return False if the two objects differ in their content, true otherwise.
      */
      */
     [[nodiscard]] bool operator==(const basic_any &other) const noexcept {
     [[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()))) {
         if(vtable && ((vtable == other.vtable) || has_value(other.info()))) {
             return (vtable(request::compare, *this, other.data()) != nullptr);
             return (vtable(request::compare, *this, other.data()) != nullptr);
         }
         }