Boost logo

Boost :

From: John Torjo (john.lists_at_[hidden])
Date: 2004-09-24 03:52:16


Gennadiy Rozental wrote:

> "John Torjo" <john.lists_at_[hidden]> wrote in message
> news:4152776F.8040303_at_torjo.com...
>
>>>inline formatob_t & format( format_type s)
>>>{
>>> FormatObject::format( s );
>>> return( *this );
>>>}
>>>
>>>formatob( vec ).format( " + " )
>>>
>>>has the same type as
>>>
>>>formatob( vec )
>>>
>>>What are you talking about? Why would you bother what
>
> FormatObject::format
>
>>>is returning?
>>>
>>
>>So that you can manipulate the formatob() object multiple times, like:
>>formatob().do_this().do_that().and_that_too();
>
>
> [I don't know why you removed original code. Let see it again.]
>
> You must be joking. Do you think I can't read code??
> formatob().format() return *** *this **** NOT FormatObject::format();
>
> So my question still stand.
>

sorry - I misread your question.
Yes, your question stands.

Best,
John

-- 
John Torjo
-- john_at_[hidden]
Contributing editor, C/C++ Users Journal
-- "Win32 GUI Generics" -- generics & GUI do mix, after all
-- http://www.torjo.com/win32gui/
-- v1.4 - save_dlg - true binding of your data to UI controls!
    + easily add validation rules (win32gui/examples/smart_dlg)

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