
5 Nov
2008
5 Nov
'08
2:36 p.m.
Hi Kenneth, On Tue, 4 Nov 2008 01:26:13 -0200, "Kenneth Laskoski" <kennethlaskoski@gmail.com> said:
Hello,
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 a00000000-0000-0000-0000-000000000000 a 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.
Regards, Kenneth
Thanks for pointing this out. I will change this. Andy.