Re: [Boost-bugs] [Boost C++ Libraries] #8327: iostream header and std::cout in hpp files must be removed.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8327: iostream header and std::cout in hpp files must be removed.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-03-23 15:04:24


#8327: iostream header and std::cout in hpp files must be removed.
-------------------------------+--------------------------------------------
  Reporter: pjtsu | Owner: johnmaddock
      Type: Support Requests | Status: new
 Milestone: To Be Determined | Component: math
   Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------

Comment (by pjtsu):

 Incidentally, override of std::endl and std::flush for '''CDumpContext'''
 in MFC is as below. (I checked only vs2010.)
 {{{#!C
 inline CDumpContext& operator << (CDumpContext& me, CDumpContext &
 (*_f)(CDumpContext&)) { return (*_f)(me); }
 namespace std {
         inline CDumpContext& flush(CDumpContext& me) { me.Flush(); return
 me; }
         inline CDumpContext& endl(CDumpContext& me) { return me <<
 _T("\n") << flush; }
 };
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8327#comment:3>
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:12 UTC