From 264ce2905eee70abbb472e9d93d1dd377692dfdc Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 11 Jul 2007 19:35:57 +0000 Subject: Bu::Atom is now comparable! --- src/atom.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 return *this; } + + bool operator ==( const MyType &oth ) + { + return (*pData) == (*oth.pData); + } + + bool operator ==( const t &oth ) + { + return (*pData) == oth; + } t *operator ->() { -- cgit v1.2.3