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));
}
};