Boost logo

Boost :

From: John Torjo (john.lists_at_[hidden])
Date: 2004-09-24 04:14:02


David Abrahams wrote:

> Reece Dunn <msclrhd_at_[hidden]> writes:
>
>
>>A windowing framework should abstract the windowing facilities of a
>>particular platform. Here are my list of requirements for this type of
>>framework:
>>
>>[1] Support constructor-based window creation, e.g.:
>>
>> frame.add( new gui::button( "Boost!" ));
>
>
> Get rid of the new operator, though. IMO there's no excuse for a GUI
> framework to expose users to unmanaged resources.
>

Indeed. You can do this:

frame->add<gui::button>( "Boost!");

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