3rdparty/sol2: Work around another place where noexcept depends on class template arguments.

This commit is contained in:
Vas Crabb 2024-05-08 03:58:36 +10:00
parent 4da99a13f5
commit b7e0fa72b9

View File

@ -19416,7 +19416,13 @@ namespace sol { namespace function_detail {
}
template <bool is_yielding, bool no_trampoline>
static int call(lua_State* L) noexcept(std::is_nothrow_copy_assignable_v<T>) {
static int call(lua_State* L)
#if SOL_IS_ON(SOL_COMPILER_CLANG)
// apparent regression in clang 18 - llvm/llvm-project#91362
#else
noexcept(std::is_nothrow_copy_assignable_v<T>)
#endif
{
int nr;
if constexpr (no_trampoline) {
nr = real_call(L);