Re: [gtkmm] "manage" and Glib::RefPtr



>> 	Ouch! Personally, I wouldn't like this at all. Remove standard C++
>> memory management from the mix. Very unpalatable IMHO. ;-)
>
>I've no idea why new/delete is widely regarded as standard C++ memory
>management.  The standard way of memory allocation in C++ is on stack.

stack-based allocation cannot work without reference counting,
and there is no standard system for this in C++. hence Glib::RefPtr,
boost::this_and_that, auto_ptr<T> etc. etc.

--p



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]