Boost logo

Boost :

Subject: Re: [boost] [uuid] width
From: Andy Tompkins (atompkins_at_[hidden])
Date: 2008-11-05 09:36:13


Hi Kenneth,

On Tue, 4 Nov 2008 01:26:13 -0200, "Kenneth Laskoski"
<kennethlaskoski_at_[hidden]> 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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk