diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-07-11 19:35:57 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-07-11 19:35:57 +0000 |
commit | 264ce2905eee70abbb472e9d93d1dd377692dfdc (patch) | |
tree | f0d601e6ed6de66cf9b47f8542459ad5fd8a3e08 | |
parent | 8165c5d4768261a90085b1378a4b29c28738b8e1 (diff) | |
download | libbu++-264ce2905eee70abbb472e9d93d1dd377692dfdc.tar.gz libbu++-264ce2905eee70abbb472e9d93d1dd377692dfdc.tar.bz2 libbu++-264ce2905eee70abbb472e9d93d1dd377692dfdc.tar.xz libbu++-264ce2905eee70abbb472e9d93d1dd377692dfdc.zip |
Bu::Atom is now comparable!
-rw-r--r-- | src/atom.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 | { |