From 731cceefc0ac2e9d3bc4a416afc63f73baa2d573 Mon Sep 17 00:00:00 2001 From: Abdulrahman Semrie Date: Tue, 29 Sep 2020 13:20:17 +0300 Subject: [PATCH] Update CustomSchemePrimitive to use the latest atomspace scheme api --- .gitignore | 4 +++- src/guile/AtomServiceSCM.cpp | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 845dc1b..8851f7e 100644 --- a/.gitignore +++ b/.gitignore @@ -36,4 +36,6 @@ build/ -**opencog.log \ No newline at end of file +**opencog.log + +.vscode \ No newline at end of file diff --git a/src/guile/AtomServiceSCM.cpp b/src/guile/AtomServiceSCM.cpp index cbed31d..8734411 100644 --- a/src/guile/AtomServiceSCM.cpp +++ b/src/guile/AtomServiceSCM.cpp @@ -17,8 +17,8 @@ class AtomServiceSCM; //Note: I had to add this custom class because using SchemePrimitive call to member function 'scm_from' is ambiguous //with candidate functions SCM scm_from(SCM scm) const and SCM scm_from(bool b) const template -class CustomSchemePrimitive: public SchemePrimitiveBase { - typedef SchemePrimitiveBase super; +class CustomSchemePrimitive: public SchemeMethodBase { + typedef SchemeMethodBase super; public: CustomSchemePrimitive(const char* module, const char* name, SCM(C::*cb)(Args...), C *data): super(module, name, cb, data){}