Просмотр исходного кода

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

Michele Caini 2 лет назад
Родитель
Сommit
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);
     }
 
     /**