diff --git a/modules/gmt/modgmt_func.cpp b/modules/gmt/modgmt_func.cpp index 30c1f28..43dd00b 100644 --- a/modules/gmt/modgmt_func.cpp +++ b/modules/gmt/modgmt_func.cpp @@ -22,10 +22,11 @@ class Base2Something: public OBTypeM Base2Something(const ObjectBase* arg):OBTypeM(arg) {}; Base2Something(const ObjectList* input, const std::string& name):OBTypeM(input->Get(name)){}; Base2Something(const ObjectList* input, const ObjectList::ListValues::size_type i):OBTypeM((iSize())?input->At(i):0){}; // Check index, because At is not safe - auto operator ()(bool* b) const -> decltype(this->OBTypeM::template operator()(b)) + template + auto operator ()(bool* b, Args... args) const -> decltype(this->OBTypeM::template operator()(b, args...)) { if(!OBTypeM::operator bool()) *b=false; - return OBTypeM::operator ()(b); + return OBTypeM::operator ()(b,args...); } };