Re: Macro for C++14 support

2013-04-23 Thread Allan Sandfeld Jensen
On Sunday 21 April 2013, Jonathan Wakely wrote: I'm starting to implement some new library features voted into C++14 at the Bristol meeting and am wondering what feature check to use. Will there be a macro like _GXX_EXPERIMENTAL_CXX1Y__ to correspond to -std=c++1y? Alternatively we could

Re: Macro for C++14 support

2013-04-23 Thread Gabriel Dos Reis
On Tue, Apr 23, 2013 at 8:15 AM, Allan Sandfeld Jensen carew...@gmail.com wrote: On Sunday 21 April 2013, Jonathan Wakely wrote: I'm starting to implement some new library features voted into C++14 at the Bristol meeting and am wondering what feature check to use. Will there be a macro like

Re: Macro for C++14 support

2013-04-23 Thread Gabriel Dos Reis
On Tue, Apr 23, 2013 at 9:01 AM, Piotr Wyderski piotr.wyder...@gmail.com wrote: Gabriel Dos Reis wrote: C++03 was essentially bug fixes to C++98 so we did not make the distinction. C++14 is more than bug fixes to C++11, it contains many new extensions. So I am unsure the situations are

Re: Macro for C++14 support

2013-04-23 Thread Paolo Carlini
Hi, Gabriel Dos Reis g...@integrable-solutions.net ha scritto: There appear to be two targets: C++14 and C++17. Personally, I am inclined to have CXX14 and CXX1Y, where CXX1Y is for the presumed C++17 target. This clarified - thanks - I'm wondering if it's safe to assume that the C++14

Re: Macro for C++14 support

2013-04-23 Thread Paolo Carlini
Hi again, Paolo Carlini paolo.carl...@oracle.com ha scritto: Hi, Gabriel Dos Reis g...@integrable-solutions.net ha scritto: There appear to be two targets: C++14 and C++17. Personally, I am inclined to have CXX14 and CXX1Y, where CXX1Y is for the presumed C++17 target. This clarified -

Re: Macro for C++14 support

2013-04-23 Thread Jonathan Wakely
On 23 April 2013 15:29, Paolo Carlini wrote: Hi, Gabriel Dos Reis g...@integrable-solutions.net ha scritto: There appear to be two targets: C++14 and C++17. Personally, I am inclined to have CXX14 and CXX1Y, where CXX1Y is for the presumed C++17 target. This clarified - thanks - I'm

Re: Macro for C++14 support

2013-04-23 Thread Paolo Carlini
Hi, Jonathan Wakely jwakely@gmail.com ha scritto: But remember we no longer use __GXX_EXPERIMENTAL_CXX0X__ anyway, we check __cplusplus = 201103L, and so within those chunks we could additionally check for some C++14 macro. Right, forgot that. Great. The = check we have got now makes

Re: Macro for C++14 support

2013-04-23 Thread Gabriel Dos Reis
On Tue, Apr 23, 2013 at 9:29 AM, Paolo Carlini paolo.carl...@oracle.com wrote: Hi, Gabriel Dos Reis g...@integrable-solutions.net ha scritto: There appear to be two targets: C++14 and C++17. Personally, I am inclined to have CXX14 and CXX1Y, where CXX1Y is for the presumed C++17 target.

Re: Macro for C++14 support

2013-04-23 Thread Gabriel Dos Reis
On Tue, Apr 23, 2013 at 9:47 AM, Jonathan Wakely jwakely@gmail.com wrote: But remember we no longer use __GXX_EXPERIMENTAL_CXX0X__ anyway, yes, this was a great move; kudos to whoever did it. we check __cplusplus = 201103L, and so within those chunks we could additionally check for some

Re: Macro for C++14 support

2013-04-23 Thread Jonathan Wakely
On 23 April 2013 15:54, Gabriel Dos Reis wrote: On Tue, Apr 23, 2013 at 9:47 AM, Jonathan Wakely jwakely@gmail.com wrote: But remember we no longer use __GXX_EXPERIMENTAL_CXX0X__ anyway, yes, this was a great move; kudos to whoever did it. That was Jason, when he changed the front end

Macro for C++14 support

2013-04-21 Thread Jonathan Wakely
I'm starting to implement some new library features voted into C++14 at the Bristol meeting and am wondering what feature check to use. Will there be a macro like _GXX_EXPERIMENTAL_CXX1Y__ to correspond to -std=c++1y? Alternatively we could set the value of __cplusplus to 201400L but I'm not

Re: Macro for C++14 support

2013-04-21 Thread Paolo Carlini
Hi, Jonathan Wakely jwakely@gmail.com ha scritto: I'm starting to implement some new library features voted into C++14 at the Bristol meeting and am wondering what feature check to use. Will there be a macro like _GXX_EXPERIMENTAL_CXX1Y__ to correspond to -std=c++1y? Humm, I'm still

Re: Macro for C++14 support

2013-04-21 Thread Jonathan Wakely
On 21 April 2013 18:05, Paolo Carlini wrote: Hi, Jonathan Wakely jwakely@gmail.com ha scritto: I'm starting to implement some new library features voted into C++14 at the Bristol meeting and am wondering what feature check to use. Will there be a macro like _GXX_EXPERIMENTAL_CXX1Y__ to

Re: Macro for C++14 support

2013-04-21 Thread Paolo Carlini
Hi, Jonathan Wakely jwakely@gmail.com ha scritto: We did, but at the time I was under the incorrect belief that C++14 would be a TC like C++03. Dietmar and Alisdair both corrected me by pointing out it's going to be a new International Standard, not just a bugfix update to C++11. Looks

Re: Macro for C++14 support

2013-04-21 Thread Gabriel Dos Reis
On Sun, Apr 21, 2013 at 9:52 AM, Jonathan Wakely jwakely@gmail.com wrote: I'm starting to implement some new library features voted into C++14 at the Bristol meeting and am wondering what feature check to use. Will there be a macro like _GXX_EXPERIMENTAL_CXX1Y__ to correspond to

Re: Macro for C++14 support

2013-04-21 Thread Gabriel Dos Reis
On Sun, Apr 21, 2013 at 12:05 PM, Paolo Carlini paolo.carl...@oracle.com wrote: Hi, Jonathan Wakely jwakely@gmail.com ha scritto: I'm starting to implement some new library features voted into C++14 at the Bristol meeting and am wondering what feature check to use. Will there be a macro

Re: Macro for C++14 support

2013-04-21 Thread Gabriel Dos Reis
On Sun, Apr 21, 2013 at 12:12 PM, Jonathan Wakely jwakely@gmail.com wrote: On 21 April 2013 18:05, Paolo Carlini wrote: Hi, Jonathan Wakely jwakely@gmail.com ha scritto: I'm starting to implement some new library features voted into C++14 at the Bristol meeting and am wondering what