mirror of
https://github.com/holub/mame
synced 2025-06-18 18:28:57 +03:00
3rdparty/sol2: Worked around apparent regression in clang 18.
When taking a pointer to a static member function template in a class template, clang reports a substitution error if the noexcept specification uses an expression that depends on class template arguments. See llvm/llvm-project#91362 on GitHub.
This commit is contained in:
parent
4413fecfd2
commit
4da99a13f5
8
3rdparty/sol2/sol/sol.hpp
vendored
8
3rdparty/sol2/sol/sol.hpp
vendored
@ -19456,7 +19456,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);
|
||||
|
Loading…
Reference in New Issue
Block a user