Re: [sigc] C++0x lambdas
- From: Rui Maciel <rui maciel gmail com>
- To: libsigc-list gnome org
- Subject: Re: [sigc] C++0x lambdas
- Date: Thu, 05 Jan 2012 19:16:45 +0000
On 01/05/2012 04:05 PM, Chow Loong Jin wrote:
The only macro I can find to do with detecting C++0x is
__GXX_EXPERIMENTAL_CXX0X__ which is probably not portable. __cplusplus is
supposed to be defined to a value greater than 199711L, but on my system it
seems to be defined without a value, defaulting to 1.
After a bit of digging, a bug report has already been filed for this
problem. It was filed in 2001 and it appears to have been fixed in
October 2011. Here is a link to the bug report.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1773
So, basically the __cplusplus macro will work with GCC 4.7. Previous
releases will be left broken.
Rui Maciel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]