summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-07-11 19:35:57 +0000
committerMike Buland <eichlan@xagasoft.com>2007-07-11 19:35:57 +0000
commit264ce2905eee70abbb472e9d93d1dd377692dfdc (patch)
treef0d601e6ed6de66cf9b47f8542459ad5fd8a3e08
parent8165c5d4768261a90085b1378a4b29c28738b8e1 (diff)
downloadlibbu++-264ce2905eee70abbb472e9d93d1dd377692dfdc.tar.gz
libbu++-264ce2905eee70abbb472e9d93d1dd377692dfdc.tar.bz2
libbu++-264ce2905eee70abbb472e9d93d1dd377692dfdc.tar.xz
libbu++-264ce2905eee70abbb472e9d93d1dd377692dfdc.zip
Bu::Atom is now comparable!
-rw-r--r--src/atom.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/atom.h b/src/atom.h
index 75ebf22..e950a96 100644
--- a/src/atom.h
+++ b/src/atom.h
@@ -104,6 +104,16 @@ namespace Bu
104 104
105 return *this; 105 return *this;
106 } 106 }
107
108 bool operator ==( const MyType &oth )
109 {
110 return (*pData) == (*oth.pData);
111 }
112
113 bool operator ==( const t &oth )
114 {
115 return (*pData) == oth;
116 }
107 117
108 t *operator ->() 118 t *operator ->()
109 { 119 {