
11 Jan
2010
11 Jan
'10
1:48 p.m.
On 01/11/10 06:14, vicente.botet wrote:
Hi, ----- Original Message ----- From: "Larry Evans" <cppljevans@suddenlink.net> [snip] On the example I see that the ++ and -- are not pairwised. [snip]
Shouldn't a scoped_indent class helps on this?
Thanks for the feedback, Vincente. Yes, a scoped_indent would help. I think the extra -- was put in there just to show nothing bad would happen. IOW, the indententation never goes below 0. I've used something like a scoped_indent to trace code. It's called trace_scope, which is attached. The mout() is actually an earlier version of the code which didn't use the iostreams library, but works similar to the proposed code (except mout() couldn't be converted to basic:ostream&). -regards, Larry