Boost logo

Boost :

From: Larry Evans (jcampbell3_at_[hidden])
Date: 2003-04-02 16:59:39


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?

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.


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