After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 93413 - Gtk::TreeRowReference copyable?
Gtk::TreeRowReference copyable?
Status: RESOLVED NOTABUG
Product: gtkmm
Classification: Bindings
Component: TreeView
2.0
Other All
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2002-09-16 16:39 UTC by Julian Missig
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Julian Missig 2002-09-16 16:39:29 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 ;)
Comment 1 Murray Cumming 2002-09-17 07:49:43 UTC
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.
Comment 2 Julian Missig 2002-09-17 16:09:08 UTC
No, I mean that I implemented those functions as public in an attempt
to make it copyable ;)
Comment 3 Murray Cumming 2002-09-17 16:51:51 UTC
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.