Loading src/uuidp.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -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; } src/uuidp.h +2 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading
src/uuidp.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -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; }
src/uuidp.h +2 −0 Original line number Diff line number Diff line Loading @@ -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; Loading