From 52372fe11f38f949c5b813cfef226a0088d39709 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Tue, 3 Oct 2023 07:51:04 +0200 Subject: [PATCH] Fix argument order --- include/momo/html_ui.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/momo/html_ui.hpp b/include/momo/html_ui.hpp index 4cfbb2b..34fc001 100644 --- a/include/momo/html_ui.hpp +++ b/include/momo/html_ui.hpp @@ -33,15 +33,19 @@ namespace momo } size_t index = 0; + std::tuple args + { + resolve_html_value>>(args, index)... + }; if constexpr (std::is_same_v) { - fun(resolve_html_value>>(args, index)...); + std::apply(fun, std::move(args)); return {}; } else { - auto ret = fun(resolve_html_value>>(args, index)...); + auto ret = std::apply(fun, std::move(args)); return html_value(std::move(ret)); } };