Răsfoiți Sursa

any: reduce direct uses of descriptor

skypjack 5 luni în urmă
părinte
comite
ba0e9fab45
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/entt/core/any.hpp

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

@@ -329,7 +329,7 @@ public:
      * otherwise.
      * otherwise.
      */
      */
     [[nodiscard]] bool has_value(const type_info &req) const noexcept {
     [[nodiscard]] bool has_value(const type_info &req) const noexcept {
-        return (descriptor() == req);
+        return (info() == req);
     }
     }
 
 
     /**
     /**