Fixes to compile with libc++

This commit is contained in:
Eduardo Bart
2013-02-05 18:30:16 -02:00
parent 717832b791
commit 86d06057ca
8 changed files with 9 additions and 121 deletions

View File

@@ -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);