skypjack пре 4 месеци
родитељ
комит
75ae0a10d0
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      src/entt/core/any.hpp

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

@@ -340,9 +340,8 @@ public:
     template<typename Type>
     [[nodiscard]] bool has_value() const noexcept {
         static_assert(std::is_same_v<std::remove_const_t<Type>, Type>, "Invalid type");
-        static constexpr auto *other = &basic_vtable<Type>;
         // it could be a call across boundaries, but still for the same type
-        return (vtable == other) || has_value(type_id<Type>());
+        return (vtable == &basic_vtable<Type>) || has_value(type_id<Type>());
     }
 
     /**