Begin templating

This commit is contained in:
2023-10-30 22:45:35 +01:00
parent e26acc3676
commit 77c33942f6
9 changed files with 64 additions and 16 deletions

View File

@@ -13,9 +13,10 @@ namespace pywrap {
pyWrap->clean(module, className);
}
void PyClassifier::callMethod(const std::string& method)
template<typename T>
T PyClassifier::callMethod(const std::string& method)
{
pyWrap->callMethod(module, className, method);
return pyWrap->callMethod<T>(module, className, method);
}
} /* namespace PyWrap */