Skip to content

Commit

Permalink
Update CustomSchemePrimitive to use the latest atomspace scheme api
Browse files Browse the repository at this point in the history
  • Loading branch information
Habush committed Sep 29, 2020
1 parent 7b01ef1 commit 731ccee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@

build/

**opencog.log
**opencog.log

.vscode
4 changes: 2 additions & 2 deletions src/guile/AtomServiceSCM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class AtomServiceSCM;
//Note: I had to add this custom class because using SchemePrimitive<SCM, C, Args...> 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<typename C, class... Args>
class CustomSchemePrimitive: public SchemePrimitiveBase<SCM, C, Args...> {
typedef SchemePrimitiveBase<SCM, C, Args...> super;
class CustomSchemePrimitive: public SchemeMethodBase<SCM, C, Args...> {
typedef SchemeMethodBase<SCM, C, Args...> super;
public:
CustomSchemePrimitive(const char* module, const char* name,
SCM(C::*cb)(Args...), C *data): super(module, name, cb, data){}
Expand Down

0 comments on commit 731ccee

Please sign in to comment.