//demonstrate use of indent_ostream with Struct s from post: /* From: dherring@ll.mit.edu Newsgroups: gmane.comp.lib.boost.devel Subject: Re: [iostreams]ANNOUNCE:indent_filtering_ostream.zip in vault Date: Wed, 13 Jan 2010 12:17:50 -0500 (EST) Lines: 104 */ #include #include #include // code oblivious to indentation std::ostream & operator<<(std::ostream &os, std::vectorconst& v) { os<<"vector"< v; int y; Struct(void) : x(5) , v({1,2,3}) , y(6) {} }; std::ostream & operator<<(std::ostream &os, Struct const& s) { os<<"Struct"; os<