From 0d835e50143dddbc8f7522afbf6c3d2759bdeea3 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 5 Aug 2019 14:29:55 +0200 Subject: [PATCH] workaround for an issue of gcc7 --- src/entt/meta/factory.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/entt/meta/factory.hpp b/src/entt/meta/factory.hpp index 645d95e84..d439b8439 100644 --- a/src/entt/meta/factory.hpp +++ b/src/entt/meta/factory.hpp @@ -181,8 +181,9 @@ meta_any invoke([[maybe_unused]] meta_handle handle, meta_any *args, std::index_ using helper_type = meta_function_helper_t; meta_any any{}; - [[maybe_unused]] const auto direct = std::make_tuple([any = args+Indexes](const auto index) { + [[maybe_unused]] const auto direct = std::make_tuple([args](const auto index) { using arg_type = std::tuple_element_t; + auto *any = args + index.value; auto *instance = any->template try_cast(); if(!instance && any->template convert()) {