mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-18 23:27:37 -05:00
19 lines
669 B
Diff
19 lines
669 B
Diff
|
|
diff -u a/include/sol/function_types_stateless.hpp b/include/types/function_types_stateless.hpp
|
||
|
|
--- a/include/sol/function_types_stateless.hpp
|
||
|
|
+++ b/include/sol/function_types_stateless.hpp
|
||
|
|
@@ -322,7 +322,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);
|