Hi, It would be great to see gtkmm start using some c++0x features. I think the best would be to keep compatibility with c++ 98 like boost did.
We can find if the user is using c++98 or c++0x by looking if the macro __GXX_EXPERIMENTAL_CXX0X__ has been defined by the gcc's preprocessor. For example: #if defined(__GXX_EXPERIMENTAL_CXX0X__) // c++0x #else // c++98 #endif Fabien Parent On Tue, Mar 30, 2010 at 16:58, Murray Cumming <[email protected]> wrote: > On Tue, 2010-03-30 at 16:48 +0200, Daniel Elstner wrote: >> Hi, >> >> Am Dienstag, den 30.03.2010, 16:19 +0200 schrieb Murray Cumming: >> >> > It would be nice if someone played with using these new features in >> > gtkmm. For intsance, create a git branch and try to replace use of >> > Glib::RefPtr<Thing> with auto wherever possible. >> >> Well, that would mainly be relevant for code using the gtkmm API. I.e. >> our examples and stuff. > > Yes, we have lots of code in gtkmm-documentation/examples (make check, > to build it) that should be branched to try stuff. > >> For the time being I see no compelling reason to break compatibility >> with C++ 98 in the library code itself. However, I'm going to adopt >> C++0x in my application code as soon as it can reasonably be done. > > > > -- > [email protected] > www.murrayc.com > www.openismus.com > > _______________________________________________ > gtkmm-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/gtkmm-list > _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
