workaround for an issue of gcc7

This commit is contained in:
Michele Caini
2019-08-05 14:29:55 +02:00
parent 29b5ffb58d
commit 0d835e5014

View File

@@ -181,8 +181,9 @@ meta_any invoke([[maybe_unused]] meta_handle handle, meta_any *args, std::index_
using helper_type = meta_function_helper_t<decltype(Candidate)>;
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<index.value, typename helper_type::args_type>;
auto *any = args + index.value;
auto *instance = any->template try_cast<arg_type>();
if(!instance && any->template convert<arg_type>()) {