diff --git a/sol/stack.hpp b/sol/stack.hpp index be7907bd..8294283a 100644 --- a/sol/stack.hpp +++ b/sol/stack.hpp @@ -116,10 +116,14 @@ inline const char* pop(lua_State* L) { } template -inline void push(lua_State* L, T arithmetic) { +inline typename std::enable_if::value>::type push(lua_State* L, T arithmetic) { detail::push_arithmetic(L, arithmetic, std::is_integral{}); } +inline void push(lua_State*, reference ref) { + ref.push(); +} + inline void push(lua_State* L, bool boolean) { lua_pushboolean(L, boolean); }