|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r74641 - in trunk/boost/test: . utils
From: gennadiy.rozental_at_[hidden]
Date: 2011-10-02 05:53:14
Author: rogeeff
Date: 2011-10-02 05:53:11 EDT (Sun, 02 Oct 2011)
New Revision: 74641
URL: http://svn.boost.org/trac/boost/changeset/74641
Log:
corrected manipulator handling in lazy_ostream
added some forwards
Added:
trunk/boost/test/floating_point_comparison.hpp (contents, props changed)
trunk/boost/test/output_test_stream.hpp (contents, props changed)
trunk/boost/test/predicate_result.hpp (contents, props changed)
Text files modified:
trunk/boost/test/utils/lazy_ostream.hpp | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
Added: trunk/boost/test/floating_point_comparison.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/test/floating_point_comparison.hpp 2011-10-02 05:53:11 EDT (Sun, 02 Oct 2011)
@@ -0,0 +1,16 @@
+// (C) Copyright Gennadiy Rozental 2011.
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+// See http://www.boost.org/libs/test for the library home page.
+//
+// File : $RCSfile$
+//
+// Version : $Revision$
+//
+// Description : forward to new locaton
+// ***************************************************************************
+
+// Boost.Test
+#include <boost/test/tools/floating_point_comparison.hpp>
Added: trunk/boost/test/output_test_stream.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/test/output_test_stream.hpp 2011-10-02 05:53:11 EDT (Sun, 02 Oct 2011)
@@ -0,0 +1,16 @@
+// (C) Copyright Gennadiy Rozental 2011.
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+// See http://www.boost.org/libs/test for the library home page.
+//
+// File : $RCSfile$
+//
+// Version : $Revision$
+//
+// Description : forward to new locaton
+// ***************************************************************************
+
+// Boost.Test
+#include <boost/test/tools/output_test_stream.hpp>
Added: trunk/boost/test/predicate_result.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/test/predicate_result.hpp 2011-10-02 05:53:11 EDT (Sun, 02 Oct 2011)
@@ -0,0 +1,16 @@
+// (C) Copyright Gennadiy Rozental 2011.
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+// See http://www.boost.org/libs/test for the library home page.
+//
+// File : $RCSfile$
+//
+// Version : $Revision$
+//
+// Description : forward to new locaton
+// ***************************************************************************
+
+// Boost.Test
+#include <boost/test/tools/predicate_result.hpp>
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-02 05:53:11 EDT (Sun, 02 Oct 2011)
@@ -99,6 +99,17 @@
#if BOOST_TEST_USE_STD_LOCALE
+template<typename R,typename S>
+inline lazy_ostream_impl<lazy_ostream const&,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>( prev, man );
+}
+
+//____________________________________________________________________________//
+
template<typename PrevPrevType, typename TPrev,typename R,typename S>
inline lazy_ostream_impl<lazy_ostream_impl<PrevPrevType,TPrev>,R& (BOOST_TEST_CALL_DECL *)(S&)>
operator<<( lazy_ostream_impl<PrevPrevType,TPrev> const& prev, R& (BOOST_TEST_CALL_DECL *man)(S&) )
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