aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/unstable/uuid.cpp5
-rw-r--r--src/unstable/uuid.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/unstable/uuid.cpp b/src/unstable/uuid.cpp
index 0257270..aef8bc0 100644
--- a/src/unstable/uuid.cpp
+++ b/src/unstable/uuid.cpp
@@ -139,6 +139,11 @@ bool Bu::Uuid::operator==( const Uuid &rhs ) const
139 return memcmp( data, rhs.data, 16 ) == 0; 139 return memcmp( data, rhs.data, 16 ) == 0;
140} 140}
141 141
142bool Bu::Uuid::operator!=( const Uuid &rhs ) const
143{
144 return !(*this == rhs);
145}
146
142Bu::Uuid &Bu::Uuid::operator=( const Uuid &rhs ) 147Bu::Uuid &Bu::Uuid::operator=( const Uuid &rhs )
143{ 148{
144 memcpy( data, rhs.data, 16 ); 149 memcpy( data, rhs.data, 16 );
diff --git a/src/unstable/uuid.h b/src/unstable/uuid.h
index de20d4c..bb3d608 100644
--- a/src/unstable/uuid.h
+++ b/src/unstable/uuid.h
@@ -46,6 +46,7 @@ namespace Bu
46 void set( const Bu::String &sSrc ); 46 void set( const Bu::String &sSrc );
47 47
48 bool operator==( const Uuid &rhs ) const; 48 bool operator==( const Uuid &rhs ) const;
49 bool operator!=( const Uuid &rhs ) const;
49 Uuid &operator=( const Bu::String &rhs ) { set( rhs ); return *this; } 50 Uuid &operator=( const Bu::String &rhs ) { set( rhs ); return *this; }
50 Uuid &operator=( const Uuid &rhs ); 51 Uuid &operator=( const Uuid &rhs );
51 52