GNOME Bugzilla – Bug 93413
Gtk::TreeRowReference copyable?
Last modified: 2004-12-22 21:47:04 UTC
Should Gtk::TreeRowReference be copyable? It would be nice... I started working on it, but not fully understanding the memory management involved, mine crashes ;)
No, it is not. From the header file: private: // noncopyable TreeRowReference(const TreeRowReference&); TreeRowReference& operator=(const TreeRowReference&); So you should not be able to write code that copies it. So I don't see how it could cause a crash. Please attempt to write some simple-as-possible compileable example code to demonstrate your problem.
No, I mean that I implemented those functions as public in an attempt to make it copyable ;)
That was silly. They are not copyable because GTK+ does not provide any functions to copy them. You need to just keep it around, maybe using pointers. If you really want to copy it then ask the GTK+ people how.