瀏覽代碼

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