Readd support for types that inherit from reference

This commit is contained in:
Rapptz 2013-11-26 04:05:04 -05:00
parent ecb44462af
commit 12aac41b9e

View File

@ -116,10 +116,14 @@ inline const char* pop<const char*>(lua_State* L) {
}
template<typename T>
inline void push(lua_State* L, T arithmetic) {
inline typename std::enable_if<std::is_arithmetic<T>::value>::type push(lua_State* L, T arithmetic) {
detail::push_arithmetic(L, arithmetic, std::is_integral<T>{});
}
inline void push(lua_State*, reference ref) {
ref.push();
}
inline void push(lua_State* L, bool boolean) {
lua_pushboolean(L, boolean);
}