mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 14:03:26 +02:00
Fixes to compile with libc++
This commit is contained in:
@@ -205,7 +205,7 @@ namespace luabinder
|
||||
template<typename C>
|
||||
LuaCppFunction bind_mem_fun(int (C::*f)(LuaInterface*)) {
|
||||
auto mf = std::mem_fn(f);
|
||||
return [=](LuaInterface* lua) -> int {
|
||||
return [=](LuaInterface* lua) mutable -> int {
|
||||
auto obj = lua->castValue<stdext::shared_object_ptr<C>>(1);
|
||||
lua->remove(1);
|
||||
return mf(obj, lua);
|
||||
|
Reference in New Issue
Block a user