[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ros-users
Subject:    [ros-users] bug in operator<< for ros::Time
From:       straszheim () willowgarage ! com (Troy Straszheim)
Date:       2011-09-29 8:51:06
Message-ID: CAE41_jCu1taK1hC-C7yZv8p23JELNyZn7YomWim24rG2GDNCBg () mail ! gmail ! com
[Download RAW message or body]

2011/9/29 Peter Soetens <peter at thesourceworks.com>:
> On Thursday 29 September 2011 00:23:12 Troy Straszheim wrote:
>> Fixed in r15052, note this patch introduces a different bug: ?what if my
>> fill character were '-' before the call to operator<<, ?or if field width
>> were 17. ?boost io state savers to the rescue...
>
> The field width is only kept for the next insertion in the stream and then
> cleared again. Only the fill character permanently modifies the 'os' object in
> the code below.
>

Okay, so just the fill character.  Just sharing the state saver trick.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic