summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVittorio Romeo <vittorio.romeo@outlook.com>2021-10-31 18:06:42 +0000
committerVittorio Romeo <vittorio.romeo@outlook.com>2021-10-31 18:06:42 +0000
commit8a1e37d07f871f7a4f87dbad736164df900bba2b (patch)
tree210fd392e64ccbd66bdc1d8ea9051e72a754fe87
parenta50399b110083be9b67f984c9117ca74a7865bc0 (diff)
Formatting
-rw-r--r--include/SSVOpenHexagon/Utils/LuaWrapper.hpp6
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))};