Re: [gtkmm] "manage" and Glib::RefPtr
- From: Paul Davis <pbd op net>
- To: Daniel Elstner <daniel elstner gmx net>
- Cc: "Butler, Gerald" <gbutler Jewels COM>, gtkmm-list gnome org
- Subject: Re: [gtkmm] "manage" and Glib::RefPtr
- Date: Thu, 10 Oct 2002 10:11:31 -0400
>> 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]