Преглед изворни кода

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.
      */
     [[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);
     }
 
     /**