Re: gtkmm and C++0x
- From: Fabien Parent <parent f gmail com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: Daniel Elstner <daniel kitta googlemail com>, gtkmm-list <gtkmm-list gnome org>
- Subject: Re: gtkmm and C++0x
- Date: Tue, 30 Mar 2010 19:14:52 +0200
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 <murrayc murrayc com> 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.
>
>
>
> --
> murrayc murrayc com
> www.murrayc.com
> www.openismus.com
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]