Boost logo

Boost :

Subject: [boost] [uuid] width
From: Kenneth Laskoski (kennethlaskoski_at_[hidden])
Date: 2008-11-03 22:26:13


I was reading/using/copying your code when I spotted a possible bug in the
inserter operator<<. The standard result for built-in types is to align the
output and set the ostream width property back to zero, which does not
happen when I use your class.

For example:
int main() {
uuid x;
cout << 'a' << setw(40) << x << 'a' << endl;

output is
but should be
a 00000000-0000-0000-0000-000000000000a

If this is the intended behavior, please document it. If not, maybe the
attached patch will help put things back on rail.


Boost list run by bdawes at, gregod at, cpdaniel at, john at