This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 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 compiler does some effort to implement half of them.


(of course that policy is to be decided by g++ and libstdc++ maintainers)

--
Marc Glisse


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]