Boost logo

Boost-Commit :

From: jefffaust_at_[hidden]
Date: 2007-05-24 21:00:46


Author: jefffaust
Date: 2007-05-24 21:00:46 EDT (Thu, 24 May 2007)
New Revision: 4234
URL: http://svn.boost.org/trac/boost/changeset/4234

Log:
fix for the print case

Text files modified:
   sandbox/explore/libs/explore/test/user_defined_container.cpp | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: sandbox/explore/libs/explore/test/user_defined_container.cpp
==============================================================================
--- sandbox/explore/libs/explore/test/user_defined_container.cpp (original)
+++ sandbox/explore/libs/explore/test/user_defined_container.cpp 2007-05-24 21:00:46 EDT (Thu, 24 May 2007)
@@ -24,12 +24,12 @@
         m_vec.push_back(3);
     }
 
- std::vector<int>::const_iterator begin() const
+ std::vector<int>::const_iterator start() const
     {
         return m_vec.begin();
     }
 
- std::vector<int>::const_iterator end() const
+ std::vector<int>::const_iterator finish() const
     {
         return m_vec.end();
     }
@@ -38,9 +38,9 @@
     std::vector<int> m_vec;
 };
 
-std::ostream& operator<<(std::ostream& ostr, user_vector& u)
+std::ostream& operator<<(std::ostream& ostr, const user_vector& u)
 {
- return boost::stream_container(ostr, u.begin(), u.end());
+ return boost::stream_container(ostr, u.start(), u.finish());
 }
 
 BOOST_AUTO_TEST_CASE( user_defined_print_test )


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