diff --git a/include/sol/reference.hpp b/include/sol/reference.hpp index 3859beab..d5fba1d5 100644 --- a/include/sol/reference.hpp +++ b/include/sol/reference.hpp @@ -557,11 +557,11 @@ namespace sol { } basic_reference(const basic_reference& o) noexcept - : basic_reference(detail::pick_main_thread < main_only && !main_only > (o.lua_state(), o.lua_state()), o) { + : basic_reference(detail::pick_main_thread(o.lua_state(), o.lua_state()), o) { } basic_reference(basic_reference&& o) noexcept - : stateless_reference(std::move(o)), luastate(detail::pick_main_thread(o.lua_state(), o.lua_state())) { + : stateless_reference(std::move(o)), luastate(detail::pick_main_thread(o.lua_state(), o.lua_state())) { o.luastate = nullptr; o.ref = LUA_NOREF; } diff --git a/single/include/sol/sol.hpp b/single/include/sol/sol.hpp index e3a63b79..9f986238 100644 --- a/single/include/sol/sol.hpp +++ b/single/include/sol/sol.hpp @@ -9142,11 +9142,11 @@ namespace sol { } basic_reference(const basic_reference& o) noexcept - : basic_reference(detail::pick_main_thread < main_only && !main_only > (o.lua_state(), o.lua_state()), o) { + : basic_reference(detail::pick_main_thread(o.lua_state(), o.lua_state()), o) { } basic_reference(basic_reference&& o) noexcept - : stateless_reference(std::move(o)), luastate(detail::pick_main_thread(o.lua_state(), o.lua_state())) { + : stateless_reference(std::move(o)), luastate(detail::pick_main_thread(o.lua_state(), o.lua_state())) { o.luastate = nullptr; o.ref = LUA_NOREF; }