#include "indent.hpp" #include typedef std::ostream marg_ostream; boost::iostreams::filtering_ostream out; marg_ostream& mout(void) { return out; } //#define DEBUG_PRINT void operator++(marg_ostream& sout) { #ifdef DEBUG_PRINT sout<<"operator++(marg_ostream&)\n"; #endif sout<(a_test) ;} #endif int main(void) { // ; boost::iostreams::filtering_ostream out ; indent_filter::push(out,2) ; out.push(std::cout) ; mout()<<"line1\n" ; ++mout() ; mout()<<"line1.1"<