Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2004-09-23 16:13:23


> The formatob_t class - to which you refer to - does need to forward the
> 'format' functions because it is defined as:
>
> template< class FormatObject >
> class formatob_t: public FormatObject
> {
> inline formatob_t & format( const DelimiterType & s )
> {
> FormatObject::format( s ); // return type == FormatObject
> return( *this );
> }
> };

Why do you bother what FormatObject::format( s ) returns? It may as well be
void for what I care. Above method format implementation will allow you to
chain format calls in any case. It's so obvious that I feel like there is
some miscommunication here.

Gennadiy.


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