From bb8bfaf262cd98b34964a82cda802b9b43d6504f Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Sat, 17 Jul 2021 23:52:07 +0200 Subject: [PATCH] meta_any: avoid risky fallthrough in the vtable (close #736) --- src/entt/meta/meta.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/entt/meta/meta.hpp b/src/entt/meta/meta.hpp index 8089fcb04..52fc74189 100644 --- a/src/entt/meta/meta.hpp +++ b/src/entt/meta/meta.hpp @@ -182,6 +182,7 @@ class meta_any { static_cast(to)->emplace(adl_meta_pointer_like::dereference(any_cast(from))); } } + break; case operation::SEQ: if constexpr(is_complete_v>) { *static_cast(to) = { std::in_place_type, std::move(const_cast(from)) };