Skip to content
Snippets Groups Projects
Commit 59ad24b2 authored by Samuel Melchior's avatar Samuel Melchior
Browse files

another try to fix the static template specialization issue

parent edd6e5f5
No related branches found
No related tags found
No related merge requests found
...@@ -42,14 +42,6 @@ extern "C" { ...@@ -42,14 +42,6 @@ extern "C" {
#include "history.h" #include "history.h"
#endif #endif
template <>
int luaCall<void>(lua_State *L,void (*_f)()) {
if (lua_gettop(L)==1)
lua_remove(L,1);
(*(_f))();
return 1;
}
//trivial class to bind options //trivial class to bind options
class gmshOptions { class gmshOptions {
public: public:
......
...@@ -497,8 +497,17 @@ static int luaCall(lua_State *L, void (*_f)(t0)) { ...@@ -497,8 +497,17 @@ static int luaCall(lua_State *L, void (*_f)(t0)) {
(*(_f))(luaStack<t0>::get(L,1)); (*(_f))(luaStack<t0>::get(L,1));
return 1; return 1;
}; };
template <> template <>
int luaCall<void>(lua_State *L,void (*_f)()); #if (__GNUC__< 4 || (_GNUC__ == 4 && __GNUC_MINOR__ < 3))
static
#endif
int luaCall<void>(lua_State *L,void (*_f)()) {
if (lua_gettop(L)==1)
lua_remove(L,1);
(*(_f))();
return 1;
}
//const, return //const, return
template <typename tObj, typename tRet, typename t0, typename t1, typename t2, typename t3> template <typename tObj, typename tRet, typename t0, typename t1, typename t2, typename t3>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment