Skip to content

Commit 3aeb7cd

Browse files
author
nitrocaster
committed
Add extra luabind::functor converters.
1 parent 12c051a commit 3aeb7cd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/xrScriptEngine/Functor.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,12 @@ struct default_converter<functor<T>> : native_converter_base<functor<T>>
5050
void to(lua_State *luaState, const functor<T> &func)
5151
{ func.push(luaState); }
5252
};
53+
54+
template<typename T>
55+
struct default_converter<const functor<T>> : default_converter<functor<T>>
56+
{};
57+
58+
template<typename T>
59+
struct default_converter<const functor<T> &> : default_converter<functor<T>>
60+
{};
5361
}

0 commit comments

Comments
 (0)