mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
avoid ICE in CUDA 11.4 compiler
This commit is contained in:
parent
293ddad868
commit
1b3b6740c5
@ -342,7 +342,7 @@ namespace sol { namespace stack {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else if constexpr (std::is_same_v<Tu, luaL_Stream*>) {
|
else if constexpr (std::is_same_v<Tu, luaL_Stream*>) {
|
||||||
luaL_Stream* source { std::forward<Args>(args)... };
|
luaL_Stream* source(std::forward<Args>(args)...);
|
||||||
luaL_Stream* stream = static_cast<luaL_Stream*>(detail::alloc_newuserdata(L, sizeof(luaL_Stream)));
|
luaL_Stream* stream = static_cast<luaL_Stream*>(detail::alloc_newuserdata(L, sizeof(luaL_Stream)));
|
||||||
stream->f = source->f;
|
stream->f = source->f;
|
||||||
#if SOL_IS_ON(SOL_LUAL_STREAM_USE_CLOSE_FUNCTION)
|
#if SOL_IS_ON(SOL_LUAL_STREAM_USE_CLOSE_FUNCTION)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user