Re: [Boost-bugs] [Boost C++ Libraries] #1574: operator<< for boost::posix_time::ptime ignores ostream flags

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1574: operator<< for boost::posix_time::ptime ignores ostream flags
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-12-21 13:18:51


#1574: operator<< for boost::posix_time::ptime ignores ostream flags
------------------------------+---------------------------------------------
  Reporter: adam@… | Owner: az_sw_dude
      Type: Bugs | Status: new
 Milestone: | Component: date_time
   Version: Boost 1.43.0 | Severity: Problem
Resolution: | Keywords:
------------------------------+---------------------------------------------

Comment (by christian.stimming@…):

 I don't understand ktchan's comment here. When compiling the attached
 example {{{ptime-operator.cpp}}} with any current boost (1.43, 1.45, SVN
 trunk; it doesn't matter which one), the output is

 {{{
 Should appear: Text. And Date: 2010-Dec-21 14:12:24.398138 Boost v104300
 2010-Dec-21 14:12:24.398138
 This line should appear (but no single date above): Text. And Date:
 2010-Dec-21 14:12:24.398138
 }}}

 which is erroneous - the second line should have been empty. After
 applying the attached second patch {{{fix-ptime-operator-2nd-
 bug1574.patch}}}, the output is

 {{{
 Should appear: Text. And Date: 2010-Dec-21 14:12:32.328110 Boost v104300

 This line should appear (but no single date above): Text. And Date:
 2010-Dec-21 14:12:32.328110
 }}}

 which is the correct and expected output. Can you please apply the patch?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/1574#comment:5>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC