diff options
author | Vittorio Romeo <vittorio.romeo@outlook.com> | 2021-10-31 18:06:42 +0000 |
---|---|---|
committer | Vittorio Romeo <vittorio.romeo@outlook.com> | 2021-10-31 18:06:42 +0000 |
commit | 8a1e37d07f871f7a4f87dbad736164df900bba2b (patch) | |
tree | 210fd392e64ccbd66bdc1d8ea9051e72a754fe87 | |
parent | a50399b110083be9b67f984c9117ca74a7865bc0 (diff) |
Formatting
-rw-r--r-- | include/SSVOpenHexagon/Utils/LuaWrapper.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/SSVOpenHexagon/Utils/LuaWrapper.hpp b/include/SSVOpenHexagon/Utils/LuaWrapper.hpp index 0d11bbfa..7a40ba67 100644 --- a/include/SSVOpenHexagon/Utils/LuaWrapper.hpp +++ b/include/SSVOpenHexagon/Utils/LuaWrapper.hpp @@ -76,10 +76,11 @@ struct FnTupleWrapper<void(TArgs...)> { count = sizeof...(TArgs) }; + using ParamsType = std::tuple<TArgs...>; template <typename T> - [[nodiscard, gnu::always_inline]] inline constexpr static std::tuple<> call( + [[nodiscard, gnu::always_inline]] inline static constexpr std::tuple<> call( T&& fn, ParamsType&& mTpl) { std::apply(std::forward<T>(fn), std::move(mTpl)); @@ -94,10 +95,11 @@ struct FnTupleWrapper<R(TArgs...)> { count = sizeof...(TArgs) }; + using ParamsType = std::tuple<TArgs...>; template <typename T> - [[nodiscard, gnu::always_inline]] inline constexpr static std::tuple<R> + [[nodiscard, gnu::always_inline]] inline static constexpr std::tuple<R> call(T&& fn, ParamsType&& mTpl) { return std::tuple<R>{std::apply(std::forward<T>(fn), std::move(mTpl))}; |