diff --git a/src/FbTk/MemFun.hh b/src/FbTk/MemFun.hh index c2c6b20c..0425fc6b 100644 --- a/src/FbTk/MemFun.hh +++ b/src/FbTk/MemFun.hh @@ -38,9 +38,7 @@ public: void operator ()() { (m_obj.*m_action)(); } - void call() { - (m_obj.*m_action)(); - } + private: Object& m_obj; Action m_action; @@ -150,7 +148,7 @@ public: void operator ()(IgnoreType1&, IgnoreType2&, IgnoreType3&) { BaseType::operator ()(); } - + template void operator ()(IgnoreType1&, IgnoreType2&) { BaseType::operator ()(); @@ -213,9 +211,9 @@ MemFunIgnoreArgs( Object& obj, ReturnType (Object:: *action)(Arg1) ) { return MemFun1IgnoreArgs(obj, action); } -/// Creates functor that ignores third argument. +/// Creates functor that ignores third argument. template -MemFun2IgnoreArgs +MemFun2IgnoreArgs MemFunIgnoreArgs( Object& obj, ReturnType (Object:: *action)(Arg1,Arg2) ) { return MemFun2IgnoreArgs(obj, action); }