summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/sol2
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2024-05-08 03:58:36 +1000
committer Vas Crabb <vas@vastheman.com>2024-05-08 03:58:36 +1000
commitb7e0fa72b92f8f6761a1a59e8ffdc46f6d17e6cc (patch)
treef71994ec3cdc7565d25cecb4f374ccb9c3ebc4b3 /3rdparty/sol2
parent4da99a13f5cd8054ff8f747a0234a74b271b663d (diff)
3rdparty/sol2: Work around another place where noexcept depends on class template arguments.
Diffstat (limited to '3rdparty/sol2')
-rw-r--r--3rdparty/sol2/sol/sol.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/3rdparty/sol2/sol/sol.hpp b/3rdparty/sol2/sol/sol.hpp
index 0bac66042d5..1a9375d996d 100644
--- a/3rdparty/sol2/sol/sol.hpp
+++ b/3rdparty/sol2/sol/sol.hpp
@@ -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);