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: 2011-01-13 12:57:23


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

Comment (by Rob Stewart):

 The patch looks good except for the ill-formed identifiers with double
 underscores. I also find "cerb" to be nonsensical. The following changes
 would be better:

 Instead of:

 {{{
 typedef std::basic_ostream<CharT, TraitsT> __ostream_type;
 typename __ostream_type::sentry cerb(os);
 if (cerb)
 }}}

 Use this:

 {{{
 typename std::basic_ostream<CharT, TraitsT>::sentry ready(os);
 if (ready)
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/1574#comment:8>
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