From 9f557a7c395ef6730c5d01871982184f6e0bf585 Mon Sep 17 00:00:00 2001
From: Adam Radziszewski <adam.radziszewski@pwr.wroc.pl>
Date: Wed, 21 Dec 2011 11:33:13 +0100
Subject: [PATCH] fix equality and lt check in SWIG wrappers (the renames
 prevented the automagic SWIG wrapping from working)

---
 swig/lexeme.i | 3 ---
 swig/tag.i    | 3 ---
 swig/token.i  | 2 --
 3 files changed, 8 deletions(-)

diff --git a/swig/lexeme.i b/swig/lexeme.i
index 00646e2..8e3b256 100644
--- a/swig/lexeme.i
+++ b/swig/lexeme.i
@@ -15,9 +15,6 @@
 
 %feature("notabstract") Corpus2::Lexeme;
 
-%rename(__op_eq__) Corpus2::Lexeme::operator==(const Lexeme& other) const;
-%rename(__op_lw__) Corpus2::Lexeme::operator<(const Lexeme& other) const;
-
 %template(LexemeVector) std::vector<Corpus2::Lexeme>;
 
 namespace Corpus2 {
diff --git a/swig/tag.i b/swig/tag.i
index 146175e..dfad31a 100644
--- a/swig/tag.i
+++ b/swig/tag.i
@@ -17,9 +17,6 @@
 
 %feature("notabstract") Corpus2::Tag;
 
-%rename(__op_eq__) Corpus2::Tag::operator==(const Tag& other) const;
-%rename(__op_lw__) Corpus2::Tag::operator<(const Tag& other) const;
-
 %template(TagVector) std::vector<Corpus2::Tag>;
 
 namespace Corpus2 {
diff --git a/swig/token.i b/swig/token.i
index c5f803a..9cea646 100644
--- a/swig/token.i
+++ b/swig/token.i
@@ -18,8 +18,6 @@
 
 %feature("notabstract") Corpus2::Token;
 
-%rename(__op_eq__) Corpus2::Token::operator==(const Corpus2::Token& other) const;
-
 %template(TokenPtr) boost::shared_ptr<Corpus2::Token>;
 %template(ConstTokenPtr) boost::shared_ptr<const Corpus2::Token>;
 
-- 
GitLab