Boost logo

Boost :

From: Tom Widmer (tom_usenet_at_[hidden])
Date: 2004-03-03 11:28:48


On Wed, 3 Mar 2004 18:11:54 +0200, "Peter Dimov" <pdimov_at_[hidden]>
wrote:

>Thorsten Ottosen wrote:
>> David,
>>
>> I'm in full support of your effort. Just a small comment:
>>
>> int main(int argc, char* argv[])
>> {
>> window w = create_window();
>> w->title("Example window");
>>
>> why is window implicitly a pointer?
>
>What alternatives do you have in mind?

window_ptr w = create_window();
or
shared_ptr<window> w = create_window();

Is the former too Hungarian?

Tom

-- 
C++ FAQ: http://www.parashift.com/c++-faq-lite/
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html

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