From 59589b6a714579fbfac09a802d6bfc87e8bae7dd Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 6 Sep 2021 14:51:35 +0200 Subject: [PATCH] meta: refine the conversion helper (mostly to please the toolset v141) --- src/entt/meta/node.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/meta/node.hpp b/src/entt/meta/node.hpp index c65bd0f4e..5640f2a80 100644 --- a/src/entt/meta/node.hpp +++ b/src/entt/meta/node.hpp @@ -156,7 +156,7 @@ class ENTT_API meta_node { }; } else if constexpr(std::is_enum_v) { return +[](const any &storage, const any &value) { - return value ? static_cast(any_cast(const_cast(storage)) = Type{static_cast>(any_cast(value))}) : static_cast(any_cast(storage)); + return value ? static_cast(any_cast(const_cast(storage)) = static_cast(static_cast>(any_cast(value)))) : static_cast(any_cast(storage)); }; } else { return nullptr;