mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Readd support for types that inherit from reference
This commit is contained in:
parent
ecb44462af
commit
12aac41b9e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user