Fixes to compile with clang

This commit is contained in:
Eduardo Bart
2013-01-29 14:35:20 -02:00
parent 4751941e4f
commit 8d6ccb8d83
8 changed files with 9 additions and 9 deletions

View File

@@ -98,6 +98,10 @@ int push_luavalue(const OTMLNodePtr& node);
bool luavalue_cast(int index, OTMLNodePtr& node);
// enum
template<class T>
typename std::enable_if<std::is_enum<T>::value, int>::type
push_luavalue(T e) { return push_luavalue((int)e); }
template<class T>
typename std::enable_if<std::is_enum<T>::value, bool>::type
luavalue_cast(int index, T& myenum);