Преглед на файлове

meta: update meta_type::is_pointer to use is_pointer meta traits

Michele Caini преди 2 години
родител
ревизия
8a4a312250
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/entt/meta/meta.hpp

+ 1 - 1
src/entt/meta/meta.hpp

@@ -1239,7 +1239,7 @@ public:
      * @return True if the underlying type is a pointer, false otherwise.
      * @return True if the underlying type is a pointer, false otherwise.
      */
      */
     [[nodiscard]] bool is_pointer() const noexcept {
     [[nodiscard]] bool is_pointer() const noexcept {
-        return node.info && (node.info->hash() != remove_pointer().info().hash());
+        return static_cast<bool>(node.traits & internal::meta_traits::is_pointer);
     }
     }
 
 
     /**
     /**