#include "indent.hpp" #include typedef std::ostream marg_ostream; marg_ostream& mout(void) { return std::cout; } //#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"<