Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74711 - trunk/boost/test/utils
From: gennadiy.rozental_at_[hidden]
Date: 2011-10-05 00:16:31


Author: rogeeff
Date: 2011-10-05 00:16:12 EDT (Wed, 05 Oct 2011)
New Revision: 74711
URL: http://svn.boost.org/trac/boost/changeset/74711

Log:
avoided double ref
Text files modified:
   trunk/boost/test/utils/lazy_ostream.hpp | 14 +++++++-------
   1 files changed, 7 insertions(+), 7 deletions(-)

Modified: trunk/boost/test/utils/lazy_ostream.hpp
==============================================================================
--- trunk/boost/test/utils/lazy_ostream.hpp (original)
+++ trunk/boost/test/utils/lazy_ostream.hpp 2011-10-05 00:16:12 EDT (Wed, 05 Oct 2011)
@@ -71,17 +71,17 @@
     }
 private:
     // Data members
- PrevType m_prev;
- StorageT m_value;
+ PrevType const& m_prev;
+ StorageT m_value;
 };
 
 //____________________________________________________________________________//
 
 template<typename T>
-inline lazy_ostream_impl<lazy_ostream const&,T>
+inline lazy_ostream_impl<lazy_ostream,T>
 operator<<( lazy_ostream const& prev, T const& v )
 {
- return lazy_ostream_impl<lazy_ostream const&,T>( prev, v );
+ return lazy_ostream_impl<lazy_ostream,T>( prev, v );
 }
 
 //____________________________________________________________________________//
@@ -99,12 +99,12 @@
 #if BOOST_TEST_USE_STD_LOCALE
 
 template<typename R,typename S>
-inline lazy_ostream_impl<lazy_ostream const&,R& (BOOST_TEST_CALL_DECL *)(S&),R& (BOOST_TEST_CALL_DECL *)(S&)>
+inline lazy_ostream_impl<lazy_ostream,R& (BOOST_TEST_CALL_DECL *)(S&),R& (BOOST_TEST_CALL_DECL *)(S&)>
 operator<<( lazy_ostream const& prev, R& (BOOST_TEST_CALL_DECL *man)(S&) )
 {
     typedef R& (BOOST_TEST_CALL_DECL * ManipType)(S&);
 
- return lazy_ostream_impl<lazy_ostream const&,ManipType,ManipType>( prev, man );
+ return lazy_ostream_impl<lazy_ostream,ManipType,ManipType>( prev, man );
 }
 
 //____________________________________________________________________________//
@@ -115,7 +115,7 @@
 {
     typedef R& (BOOST_TEST_CALL_DECL * ManipType)(S&);
 
- return lazy_ostream_impl<lazy_ostream_impl<PrevPrevType,TPrev> const&,ManipType,ManipType>( prev, man );
+ return lazy_ostream_impl<lazy_ostream_impl<PrevPrevType,TPrev>,ManipType,ManipType>( prev, man );
 }
 
 //____________________________________________________________________________//


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