From 12aac41b9ead0a1e1b711bae445c655e6f233ce3 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 26 Nov 2013 04:05:04 -0500 Subject: [PATCH] Readd support for types that inherit from reference --- sol/stack.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); }