Boost logo

Boost :

Subject: Re: [boost] [type_erasure] Review started (July 18-27, 2012)
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-08-15 12:42:30


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);

In Christ,
Steven Watanabe


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