From ee88cf16d1ee02876acf0d9538fae3ada42b2e89 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 5 Sep 2022 15:30:29 +0200 Subject: [PATCH] any: avoid using storage_type to compute in_situ --- src/entt/core/any.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/core/any.hpp b/src/entt/core/any.hpp index 06288a018..c928295c3 100644 --- a/src/entt/core/any.hpp +++ b/src/entt/core/any.hpp @@ -57,7 +57,7 @@ class basic_any { using vtable_type = const void *(const operation, const basic_any &, const void *); template - static constexpr bool in_situ = Len && alignof(Type) <= alignof(storage_type) && sizeof(Type) <= sizeof(storage_type) && std::is_nothrow_move_constructible_v; + static constexpr bool in_situ = Len && alignof(Type) <= Align && sizeof(Type) <= Len && std::is_nothrow_move_constructible_v; template static const void *basic_vtable([[maybe_unused]] const operation op, [[maybe_unused]] const basic_any &value, [[maybe_unused]] const void *other) {