|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r63344 - sandbox/variadic_templates/libs/composite_storage/sandbox/pack
From: cppljevans_at_[hidden]
Date: 2010-06-26 08:12:15
Author: cppljevans
Date: 2010-06-26 08:12:14 EDT (Sat, 26 Jun 2010)
New Revision: 63344
URL: http://svn.boost.org/trac/boost/changeset/63344
Log:
replaced indent_ostream with the buf counterpart
Text files modified:
sandbox/variadic_templates/libs/composite_storage/sandbox/pack/composite_storage.leaf.test.cpp | 18 ++++++------------
1 files changed, 6 insertions(+), 12 deletions(-)
Modified: sandbox/variadic_templates/libs/composite_storage/sandbox/pack/composite_storage.leaf.test.cpp
==============================================================================
--- sandbox/variadic_templates/libs/composite_storage/sandbox/pack/composite_storage.leaf.test.cpp (original)
+++ sandbox/variadic_templates/libs/composite_storage/sandbox/pack/composite_storage.leaf.test.cpp 2010-06-26 08:12:14 EDT (Sat, 26 Jun 2010)
@@ -10,33 +10,26 @@
//#include <boost/composite_storage/pack/container_all_of_aligned.hpp>
#include <boost/composite_storage/pack/container_one_of_maybe.hpp>
-#include <boost/iostreams/utility/indent_ostream.hpp>
-#include <string>
+#include <boost/iostreams/utility/indent_scoped_ostreambuf.hpp>
#include <iostream>
+#include <string>
+static std::ostream& ind_out=std::cout;
#include "../../utility/curried_offset.hpp"
#include <boost/assert.hpp>
- typedef
- ::boost::iostreams::indent_ostream<>
-ind_ostream
-;
- static
- ind_ostream
-ind_out(std::cout)
-;
struct trace_scope
{
trace_scope(std::string const& a_where)
: my_where(a_where)
{
ind_out<<"[[[ENTERING:"<<my_where<<"\n";
- ++ind_out;
+ ind_out<<indent_buf_in;
}
~trace_scope(void)
{
- --ind_out;
+ ind_out<<indent_buf_out;
ind_out<<"]]]EXITING:"<<my_where<<"\n";
}
private:
@@ -572,6 +565,7 @@
int main(void)
{
+ boost::iostreams::indent_scoped_ostreambuf<char> indent_outbuf(std::cout,4);
boost::composite_storage::leaf_test::test();
return 0;
}
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