Commit 9c26cd3a authored by jan.koester's avatar jan.koester
Browse files

needed for map

parent f3529ab0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -196,3 +196,7 @@ void uuid::uuid::generate(){
    // Set the UUID variant to 10 (for RFC 4122)
    value[8] = (value[8] & 0x3F) | 0x80; // Variant 10 is 10xx
}

bool uuid::uuid::operator<(const uuid& other) const {
    return std::memcmp(value, other.value, 16) < 0;
}
+2 −0
Original line number Diff line number Diff line
@@ -64,6 +64,8 @@ namespace uuid{
      bool operator==(const uuid &src) const;
      bool operator!=(const uuid &src) const;
      
      bool operator<(const uuid& other) const;

      uuid_t value;
   private:
       char *cstr;