Boost logo

Boost-Commit :

From: jared_at_[hidden]
Date: 2007-05-27 12:09:59


Author: jared
Date: 2007-05-27 12:09:59 EDT (Sun, 27 May 2007)
New Revision: 4317
URL: http://svn.boost.org/trac/boost/changeset/4317

Log:
Now we can use print directly in the iterator versions of print. This reduces the duplication of the defaults and makes the code a little safer to changes in the system.

Text files modified:
   sandbox/explore/boost/explore/explore.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: sandbox/explore/boost/explore/explore.hpp
==============================================================================
--- sandbox/explore/boost/explore/explore.hpp (original)
+++ sandbox/explore/boost/explore/explore.hpp 2007-05-27 12:09:59 EDT (Sun, 27 May 2007)
@@ -30,7 +30,7 @@
 #include <boost/utility/enable_if.hpp>
 #include <boost/foreach.hpp>
 #include <boost/range/const_iterator.hpp>
-#include <boost/range/functions.hpp>
+#include <boost/range/functions.hpp>
 #include <boost/range/iterator_range.hpp>
 
 
@@ -381,13 +381,13 @@
                                                          const format_type &format,
                                                          const container_policy_type &policy)
         {
- return container_printer::print_item<format_type, container_policy_type>( boost::make_iterator_range(first, last), stream );
+ return print( boost::make_iterator_range(first, last), stream, format, policy );
         }
         
         template<class InputIterator>
         std::ostream &print(InputIterator first, InputIterator last, std::ostream &stream = std::cout)
         {
- return print( first, last, stream, default_format(), default_container_policy());
+ return print( boost::make_iterator_range(first, last), stream );
         }
         
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk