From 589004ab7a7d3799e7a9ff1a71c099535e98eb5a Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 10 Mar 2010 11:29:33 +0000 Subject: [PATCH] fix compile, test #3 --- Common/LuaBindings.cpp | 2 +- Common/LuaBindings.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/LuaBindings.cpp b/Common/LuaBindings.cpp index dee1be39d4..489211eef3 100644 --- a/Common/LuaBindings.cpp +++ b/Common/LuaBindings.cpp @@ -43,7 +43,7 @@ extern "C" { #endif template <> -int luaCall(lua_State *L,void (*_f)()) { +int luaCall<void>(lua_State *L,void (*_f)()) { if (lua_gettop(L)==1) lua_remove(L,1); (*(_f))(); diff --git a/Common/LuaBindings.h b/Common/LuaBindings.h index 1f84e246d8..9a7a015e80 100644 --- a/Common/LuaBindings.h +++ b/Common/LuaBindings.h @@ -498,7 +498,7 @@ static int luaCall(lua_State *L, void (*_f)(t0)) { return 1; }; template <> -int luaCall(lua_State *L,void (*_f)()); +int luaCall<void>(lua_State *L,void (*_f)()); //const, return template <typename tObj, typename tRet, typename t0, typename t1, typename t2, typename t3> -- GitLab