make to_string for uuid_t const (like i should have to begin with)
This commit is contained in:
parent
5b06d041b2
commit
9afc044002
1 changed files with 2 additions and 2 deletions
|
|
@ -78,7 +78,7 @@ inline bool operator!=(int const & lhs, uuid_t const & rhs) {
|
|||
|
||||
|
||||
// easier conversion to string
|
||||
inline std::string to_string(uuid_t const &value) {
|
||||
inline std::string to_string(const uuid_t& value) {
|
||||
std::ostringstream uuid_s;
|
||||
uuid_s << std::hex;
|
||||
uuid_s << std::setfill('0') << std::setw(16) << value.uuid_upper;
|
||||
|
|
@ -87,7 +87,7 @@ inline std::string to_string(uuid_t const &value) {
|
|||
}
|
||||
|
||||
// stream operations
|
||||
inline std::ostream& operator<<(std::ostream& os, uuid_t& value) {
|
||||
inline std::ostream& operator<<(std::ostream& os, const uuid_t& value) {
|
||||
os << to_string(value);
|
||||
return os;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue