RE: [Re: [Re: [Re: [Re: [Re: [Re: [Re: [[gtkmm] technical questio n: GTKMM_LIFECYCLE]]]]]]]]
- From: "Garriss, Michael" <Michael Garriss abacus-direct com>
- To: 'Paul Davis' <pbd op net>, Murray Cumming <murrayc usa net>
- Cc: Martin Schulze <MHL Schulze t-online de>, gtkmm-list <gtkmm-list gnome org>
- Subject: RE: [Re: [Re: [Re: [Re: [Re: [Re: [Re: [[gtkmm] technical questio n: GTKMM_LIFECYCLE]]]]]]]]
- Date: Wed, 2 Oct 2002 11:45:22 -0600
I'd also prefer an overloaded operator new.
-Mike
-----Original Message-----
From: Paul Davis [mailto:pbd op net]
Sent: Wednesday, October 02, 2002 11:47 AM
To: Murray Cumming
Cc: Martin Schulze; gtkmm-list
Subject: Re: [Re: [Re: [Re: [Re: [Re: [Re: [Re: [[gtkmm] technical
question: GTKMM_LIFECYCLE]]]]]]]]
>> keep things like I have implemented them at the moment and recommend
>> users to write "Gst::RefPtr<Gst::Pad> my_pad = Gst::manage(new
Gst::Pad);"
something like:
Gst::container_managed (new Gst::Pad);
might keep everyone happy. personally, i'd prefer an overloaded
operator new for Glib::Object:
enum ManagementStyle {
ExplicitlyManaged,
ContainerManaged
...
}
operator new (size_t, ManagementStyle style = ExplicitlyManaged);
allowing:
new (Glib::ContainerManaged) Gst::Pad;
--p
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]