Move constructors were discussed on the gtkmm-list in November 2012 in a
thread starting at
https://mail.gnome.org/archives/gtkmm-list/2012-November/msg00072.html
I think that move constructors and other C++11 features will be accepted
in gtkmm and glibmm, provided
1. They can be added without breaking API or ABI.
2. Compilers without C++11 support can still be used, i.e. C++11
features are automatically disabled when the compiler does not
support them.
Den 2014-12-29 19:12, Marcin Kolny skrev:
Hi,
I thought about using C++11 a lot in terms of gstreamermm - there is a
lot of places where new features should be used (e.g. rvalue
references when argument is transfer full etc.). Moreover, it will be
easier, when I finish work on using gobject-introspection in mm
generators (it's going slow for now because of lack of time, but I'll
have more time in the following year).
Unfortunately, using c++11 in gtkmm/glibmm might cause following problems:
- numerous people still use compilers which don't support c++11
- very often it requires modifying interface, and existing code won't
work with new version of libraries.
Personally, I'm fan of C++11 and 14 features, but last word belongs to
gtkmm/glibmm maintainers.
2014-12-28 15:42 GMT+01:00 Christof Meerwald <cme...@cmeerw.org
<mailto:cme...@cmeerw.org>>:
Hi,
just wondering if anyone has given any thought on C++11 features for
gtkmm.
One thing that seems very unfortunate is that all objects are
non-movable (due to them being explicitly made non-copyable which then
also deletes the move constructor).
Actually, what I was trying to do was to create an array of
Gtk::Label, e.g.
{ Gtk::Label l[] { Gtk::Label{"1"}, Gtk::Label{"2"} }; }
this one doesn't work because a Gtk::Label is neither copyable nor
movable (but I think it should be movable) - the alternative
{ Gtk::Label l[] { {"1"}, {"2"} }; }
doesn't work either because the constructor is marked explicit.
I have only done a very cursory search through the mailing list
archive, but haven't found much related. Any thoughts?
Christof
--
http://cmeerw.org sip:cmeerw at cmeerw.org
<http://cmeerw.org>
mailto:cmeerw <mailto:cmeerw> at cmeerw.org <http://cmeerw.org>
xmpp:cmeerw at cmeerw.org <http://cmeerw.org>
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org <mailto:gtkmm-list@gnome.org>
https://mail.gnome.org/mailman/listinfo/gtkmm-list
--
Pozdrawiam
Marcin Kolny
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list