@@ -96,7 +96,7 @@ class CLuaDefs
9696 template <auto ReturnOnError, auto T>
9797 static inline int ArgumentParserWarn (lua_State* L)
9898 {
99- return CLuaFunctionParser<false , ReturnOnError, T >()(L, m_pScriptDebugging);
99+ return CLuaFunctionParser<false , ReturnOnError, remove_noexcept_fn_v<T> >()(L, m_pScriptDebugging);
100100 }
101101
102102 // Special case for overloads
@@ -106,8 +106,8 @@ class CLuaDefs
106106 {
107107 // Pad functions to have the same number of parameters by
108108 // filling both up to the larger number of parameters with dummy_type arguments
109- using PaddedFunctionA = pad_func_with_func<FunctionA, FunctionB>;
110- using PaddedFunctionB = pad_func_with_func<FunctionB, FunctionA>;
109+ using PaddedFunctionA = pad_func_with_func<remove_noexcept_fn_v< FunctionA>, remove_noexcept_fn_v< FunctionB> >;
110+ using PaddedFunctionB = pad_func_with_func<remove_noexcept_fn_v< FunctionB>, remove_noexcept_fn_v< FunctionA> >;
111111 // Combine functions
112112 using Overload = CLuaOverloadParser<PaddedFunctionA::Call, PaddedFunctionB::Call>;
113113
@@ -118,7 +118,7 @@ class CLuaDefs
118118 template <auto T>
119119 static inline int ArgumentParser (lua_State* L)
120120 {
121- return CLuaFunctionParser<true , nullptr , T >()(L, m_pScriptDebugging);
121+ return CLuaFunctionParser<true , nullptr , remove_noexcept_fn_v<T> >()(L, m_pScriptDebugging);
122122 }
123123
124124 // Special case for overloads
@@ -128,8 +128,8 @@ class CLuaDefs
128128 {
129129 // Pad functions to have the same number of parameters by
130130 // filling both up to the larger number of parameters with dummy_type arguments
131- using PaddedFunctionA = pad_func_with_func<FunctionA, FunctionB>;
132- using PaddedFunctionB = pad_func_with_func<FunctionB, FunctionA>;
131+ using PaddedFunctionA = pad_func_with_func<remove_noexcept_fn_v< FunctionA>, remove_noexcept_fn_v< FunctionB> >;
132+ using PaddedFunctionB = pad_func_with_func<remove_noexcept_fn_v< FunctionB>, remove_noexcept_fn_v< FunctionA> >;
133133 // Combine functions
134134 using Overload = CLuaOverloadParser<PaddedFunctionA::Call, PaddedFunctionB::Call>;
135135
0 commit comments