Re: Why doesn't Glib::Object have a copy-constructor?



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?


С уважением,
Кирсанов Виталий
ICQ: 193259120


2013/7/2 Виталий Кирсанов <krokoziabla gmail com>
Hello list.

Does anybody know why it's absent in Glib::Object's definition?

Vitaly Kirsanov
ICQ: 193259120



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