[Boost-bugs] [Boost C++ Libraries] #7250: rational.hpp imports header iostream even if stream operators are not needed

Subject: [Boost-bugs] [Boost C++ Libraries] #7250: rational.hpp imports header iostream even if stream operators are not needed
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-19 11:21:21


#7250: rational.hpp imports header iostream even if stream operators are not
needed
-------------------------------------------------------+--------------------
 Reporter: Levente Hunyadi <levente@…> | Owner: turkanis
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: rational
  Version: Boost 1.51.0 | Severity: Problem
 Keywords: |
-------------------------------------------------------+--------------------
 Many Boost libraries have header variants with and without iostream
 support:

 {{{
 #include "boost/date_time/posix_time/posix_time.hpp" //include all types
 plus i/o
 }}}
 or
 {{{
 #include "boost/date_time/posix_time/posix_time_types.hpp" //no i/o just
 types
 }}}

 Likewise, there exists a macro BOOST_NO_IOSTREAM, which should prevent
 <iostream> from being included, see ticket #4060.

 Neither approaches are available in boost::rational<> but either could be
 put to good use.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7250>
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:10 UTC