Re: Why doesn't Glib::Object have a copy-constructor?
- From: Виталий Кирсанов <krokoziabla gmail com>
- To: gtkmm-list gnome org
- Subject: Re: Why doesn't Glib::Object have a copy-constructor?
- Date: Tue, 2 Jul 2013 16:55:01 +0400
A little update.
Is it possible in Glib to clone an object at all? I've just had a glance at the interfaces Glib provides and it seems there is no way to create a clone of an object. There is an article in GObject manual that it's possible to copy an object using GValue interface. But in fact g_value_set_object() and g_value_copy() functions only deal with references to objects but not objects themselves. That is, for instance, g_value_copy() function doesn't create a new object, instead it simply creates another reference to the original object.
If it isn't possible - on the earth - why?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]