diff options
| -rw-r--r-- | pkuuid.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -153,6 +153,8 @@ std::ostream& operator<<(std::ostream &o, const struct pk_uuid& uuid) { int i; + std::ios_base::fmtflags orig_flags = o.flags(); + auto fill = o.fill(); o << std::hex; for (i = 0; i < 4; ++i) { o << std::setw(2) << std::setfill('0'); @@ -178,6 +180,8 @@ operator<<(std::ostream &o, const struct pk_uuid& uuid) o << std::setw(2) << std::setfill('0'); o << (uint16_t)uuid.uuid[i]; } + o.fill(fill); + o.flags(orig_flags); return o; } |
