Skip to content
Snippets Groups Projects
Commit d7ff889a authored by Adam Radziszewski's avatar Adam Radziszewski
Browse files

add SWIG __hash__ to tag

parent 9f557a7c
Branches
No related merge requests found
......@@ -48,6 +48,13 @@ namespace Corpus2 {
};
size_t hash_value(const Tag &tag);
%extend Tag {
long __hash__() {
return (long) hash_value(*self);
}
}
}
using namespace std;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment