|
Boost : |
Subject: Re: [boost] [type_erasure] Review started (July 18-27, 2012)
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2012-08-15 12:52:19
> -----Original Message-----
> From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]] On Behalf Of Steven
> Watanabe
> Sent: Wednesday, August 15, 2012 5:43 PM
> To: boost_at_[hidden]
> Subject: Re: [boost] [type_erasure] Review started (July 18-27, 2012)
>
> AMDG
>
> On 08/15/2012 09:06 AM, Paul A. Bristow wrote:
> >
> > I've wanted to add control of the column width.
> >
> > <snip>
> >
> > I expected to be able to add
> >
> > os.width(20);
> >
> > before
> >
> > os << separator.c_str();
> >
> > but that doesn't work.
> >
> > <snip>
> >
>
> You should be able to use:
> static_cast<std::ios_base&>(os).width(20);
Correct!
Thanks
Paul
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk