$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: [boost] [uuid] width
From: Kenneth Laskoski (kennethlaskoski_at_[hidden])
Date: 2008-11-03 22:26:13
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