Boost logo

Boost :

From: Jason House (jhouse_at_[hidden])
Date: 2003-04-02 17:32:30


Larry Evans wrote:
>
> Reece Dunn wrote:
> > Here is the associated code and example program.
> Wouldn't the following:
>
> *this<<iomanip::setw(m_indent.length * m_indent.level)<<setfill(fill)<<fill;
> *this<<setfill(fill);
>
> do essentially what indentor< OutputFileType >::indent() does?

I have not read indentor's code, so I'll only comment about the example
replacement code.

My complaint is basically the same as my complaint about io_manip.
The example code looks like it discards the old fill character in favor
of a new one... and never sets it back. I'll continue to hope that an
official implementation would not do such things.

>
> This implementation also requires the user to know when the
> beginning of line occurs. That does sound pretty reasonable,
> and I'm kinda wondering why I didn't do it in marg_ostream; however,
> marg_ostream doesn't require this, and I'm wondering whether other
> people think this feature is worth the extra complexity in
> marg_ostream. Another indentor implementation is there's no need
> to defind operator<< or all the primitive types as was done in
> marg_ostream.

I'll have to check that out, since I have no clue what it does
already... But where can I find it? Searching boost...
"Your search - marg_ostream - did not match any documents."

> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk