Re: [libcpp] Correctly define __cplusplus (PR libstdc++-v3/1773)

2011-10-31 Thread Jason Merrill
On 10/21/2011 03:52 PM, Jason Merrill wrote: On 10/21/2011 03:11 PM, Marc Glisse wrote: Note that at least clang now defines __cplusplus to its new C++11 value (in experimental C++0X mode only). Apparently they switched around last June and say they are not the only ones. So if you want to follo

Re: [libcpp] Correctly define __cplusplus (PR libstdc++-v3/1773)

2011-10-21 Thread Jason Merrill
On 10/21/2011 06:22 PM, Mike Stump wrote: Is there a plan on what the default language will be? C is stuck in 1980, and will be forever. Personally, I'd rather have g++ move up language standards by default, I'd rather make the move before 2023. I think it makes sense to change the default

Re: [libcpp] Correctly define __cplusplus (PR libstdc++-v3/1773)

2011-10-21 Thread Gabriel Dos Reis
On Fri, Oct 21, 2011 at 5:22 PM, Mike Stump wrote: > On Oct 21, 2011, at 12:52 PM, Jason Merrill wrote: >> On 10/21/2011 03:11 PM, Marc Glisse wrote: >>> Note that at least clang now defines __cplusplus to its new C++11 value >>> (in experimental C++0X mode only). Apparently they switched around l

Re: [libcpp] Correctly define __cplusplus (PR libstdc++-v3/1773)

2011-10-21 Thread Mike Stump
On Oct 21, 2011, at 12:52 PM, Jason Merrill wrote: > On 10/21/2011 03:11 PM, Marc Glisse wrote: >> Note that at least clang now defines __cplusplus to its new C++11 value >> (in experimental C++0X mode only). Apparently they switched around last >> June and say they are not the only ones. So if you

Re: [libcpp] Correctly define __cplusplus (PR libstdc++-v3/1773)

2011-10-21 Thread Jason Merrill
On 10/21/2011 03:11 PM, Marc Glisse wrote: Note that at least clang now defines __cplusplus to its new C++11 value (in experimental C++0X mode only). Apparently they switched around last June and say they are not the only ones. So if you want to follow their lead... Hmm, between that and the fa

Re: [libcpp] Correctly define __cplusplus (PR libstdc++-v3/1773)

2011-10-21 Thread Marc Glisse
On Tue, 9 Aug 2011, Jason Merrill wrote: On 08/09/2011 09:14 AM, Marc Glisse wrote: I don't think we should define the C++ 2011 value yet. In my opinion, we should wait until: 1) the standard is official 2) gcc implements most of it: people will want to use __cplusplus as a test to know if they

Re: [libcpp] Correctly define __cplusplus (PR libstdc++-v3/1773)

2011-08-18 Thread Tom Tromey
> "Rainer" == Rainer Orth writes: Jason> I'm of two minds about this, but I see that clang and edg still Jason> use 199711L in C++0x mode, so let's stick with that for now. Rainer> with the prerequisite patches now installed, here's the reworked version Rainer> of the final patch. Rainer> T

Re: [libcpp] Correctly define __cplusplus (PR libstdc++-v3/1773)

2011-08-18 Thread Rainer Orth
Jason, > On 08/09/2011 09:14 AM, Marc Glisse wrote: >> I don't think we should define the C++ 2011 value yet. In my opinion, we >> should wait until: >> 1) the standard is official >> 2) gcc implements most of it: people will want to use __cplusplus as a >> test to know if they can use C++0X featu

Re: [libcpp] Correctly define __cplusplus (PR libstdc++-v3/1773)

2011-08-10 Thread Gabriel Dos Reis
On Wed, Aug 10, 2011 at 7:12 AM, Rainer Orth wrote: > Jason Merrill writes: > >> On 08/09/2011 09:14 AM, Marc Glisse wrote: >>> I don't think we should define the C++ 2011 value yet. In my opinion, we >>> should wait until: >>> 1) the standard is official >>> 2) gcc implements most of it: people

Re: [libcpp] Correctly define __cplusplus (PR libstdc++-v3/1773)

2011-08-10 Thread Rainer Orth
Jason Merrill writes: > On 08/09/2011 09:14 AM, Marc Glisse wrote: >> I don't think we should define the C++ 2011 value yet. In my opinion, we >> should wait until: >> 1) the standard is official >> 2) gcc implements most of it: people will want to use __cplusplus as a >> test to know if they can

Re: [libcpp] Correctly define __cplusplus (PR libstdc++-v3/1773)

2011-08-09 Thread Jason Merrill
On 08/09/2011 09:14 AM, Marc Glisse wrote: I don't think we should define the C++ 2011 value yet. In my opinion, we should wait until: 1) the standard is official 2) gcc implements most of it: people will want to use __cplusplus as a test to know if they can use C++0X features, not if the compile

Re: [libcpp] Correctly define __cplusplus (PR libstdc++-v3/1773)

2011-08-09 Thread Marc Glisse
On Tue, 9 Aug 2011, Rainer Orth wrote: This patch achieves what all the previous ones have prepared: finally defining __cplusplus correctly instead of the current 1. I'm uncertain if it's already appropriate to define the C++ 2011 value yet, but I've kept it in the patch. Hello, I don't thin