Re: [ros-users] bug in operator<< for ros::Time

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: User discussions
Date:  
To: Peter Soetens
CC: ros-users
Subject: Re: [ros-users] bug in operator<< for ros::Time
2011/9/29 Peter Soetens <>:
> 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.