changes to compile on gcc 4.7

This commit is contained in:
Eduardo Bart
2011-12-19 15:26:19 -02:00
parent 56a392f681
commit 2b25ffd86b
3 changed files with 19 additions and 4 deletions

View File

@@ -296,7 +296,7 @@ public:
/// Pushes any type onto the stack
template<typename T, typename... Args>
void polymorphicPush(T v, Args... args) { push_luavalue(v); polymorphicPush(args...); }
void polymorphicPush(T v, Args... args);
void polymorphicPush() { }
/// Casts a value from stack to any type
@@ -320,6 +320,12 @@ extern LuaInterface g_lua;
#include "luabinder.h"
#include "luavaluecasts.h"
template<typename T, typename... Args>
void LuaInterface::polymorphicPush(T v, Args... args) {
push_luavalue(v);
polymorphicPush(args...);
}
// next templates must be defined after above includes
template<class C, typename F>
void LuaInterface::bindClassStaticFunction(const std::string& functionName, const F& function) {