Re: [SG10] Query on SD-6

2014-08-12 Thread Nelson, Clark
Is SD-6 implemented by any of the compiler implementations? If yes, no you know which ones? I'm going to jump straight to the meta-question: Is there anything that can and should be done to make it easier to find which compilers implement SD-6? I think that is really a question for Herb:

[SG10] New draft of SD-6

2014-08-14 Thread Nelson, Clark
I have made a few minor revisions since N4030. The redlining in the document is relative to the published SD-6; I think that's the way we'll want to publish it. But here is what I've changed recently: In response to Ed Smith-Rowland's question about optional vs. experimental/optional I updated

[SG10] Agenda

2014-08-15 Thread Nelson, Clark
I have had some experience suggesting that the WebEx invitation message (below) isn't always by itself an effective way to announce a meeting. So I'm sending another message to try to be sure everyone sees this information. Monday we will be reviewing the latest draft of SD-6. I'm hoping we will

Re: [SG10] __has_cpp_attribute grammar

2014-08-18 Thread Nelson, Clark
I think the correct production should be: has-attribute-expression: __has_cpp_attribute ( attribute-token ) Thoughts? Um, yeah, that seems right. I guess we now have proof that Richard and Jens and John and I are all human. :-/ Thanks for catching that, Aaron. Clark

[SG10] Formally revising SD-6

2014-08-19 Thread Nelson, Clark
I said previously that I thought we would be ready to revise the SD-6 on isocpp.org before the Urbana meeting, and I still think that -- the text is all but ready now. But in thinking about the process of publishing the revision, I had a new thought. I think it would be a good idea to have the

[SG10] Final(?) draft: first revision of SD-6

2014-08-21 Thread Nelson, Clark
Here is the updated draft, hopefully ready for formal publication on isocpp.org. Does anyone have any comment on whether we should publish before or after the Urbana meeting? Please see the Formally revising message I posted Tuesday for brief discussion. I made a few changes we did not discuss

[SG10] Updates to SD-6

2014-12-29 Thread Nelson, Clark
I have finally gotten around to updating SD-6 on isocpp.org: https://isocpp.org/std/standing-documents/sd-6-sg10-feature-test-recommendations What's up there now differs from N4200 in just a few minor ways (according to my intention and knowledge): 1. An updated document date and history. 2. A

Re: [SG10] Updates to SD-6

2015-01-12 Thread Nelson, Clark
That does not sound entirely sane to me: I think you're suggesting that a programmer would duplicate some set of numeric literals, just so they could put digit separators in one copy of them. The risk of the two copies becoming out-of-sync seems like sufficient justification for any

Re: [SG10] Updates to SD-6: N4190

2015-01-12 Thread Nelson, Clark
I see portability as the main goal with SD-6: If a newer feature is not available on one of your target platform/compiler combinations you have to roll back to the older facility. Different compilers are at different places toward full feature support. Of course; but N4190 doesn't add a

Re: [SG10] Updates to SD-6

2015-01-12 Thread Nelson, Clark
The real (slight) reluctance: There is a tiny risk removing macros that have been shipped. OTOH, if no one in their right mind would use them then they shouldn't be out in the wild and then I say go ahead. It might be nice to have this solidified soonish so I can maybe back out before

[SG10] Meeting this evening at the Marriott

2015-05-05 Thread Nelson, Clark
A few SG10 members us were together a few minutes ago, and a suggestion was made that we should get together this evening (during the reflection session) to work on model text for a TS to use to introduce its feature-test macro description(s), and that this model text should be added to SD-6.

[SG10] __has_include and __has_cpp_attribute

2015-05-06 Thread Nelson, Clark
At the meeting last night I mentioned a thought that was eluding me at the moment. I have remembered what it was. We should consider adding __has_include and __has_cpp_attribute to the C++17 standard. Would anyone in SG10 have any concerns about that direction? -- Clark NelsonChair,

Re: [SG10] Last-minute changes

2015-04-10 Thread Nelson, Clark
The library examples look good to me, I couldn't find anything to laugh at :-) Wow. Miracles happen sometimes. For N4295: Folding expressions the motivating example from N4191 might be good: #if __cpp_fold_expressions templatetypename... T auto sum(T... args) { return (args + ...); }

Re: [SG10] Jacksonville additions

2016-03-10 Thread Nelson, Clark
> On 3/9/2016 10:55 PM, Nelson, Clark wrote: > >> I'd like to see a feature-test for LWG2296, "std::addressof > should > >> be > >> constexpr" > >> > (http://wiki.edg.com/pub/Wg21jacksonville/StrawPolls/P0304R0.html). > > > > Woul

Re: [SG10] Jacksonville additions

2016-03-10 Thread Nelson, Clark
> >>> For example, capture of this and constexpr lambdas *could* be an > update of __cpp_lambdas. > >> > >> Agreed, sounds more reasonable to me. > > > > That means that you can't test for support of one without the > other, but > > I guess that's OK. > > The other way to go would be to have

Re: [SG10] Jacksonville additions

2016-03-10 Thread Nelson, Clark
> On 03/10/2016 01:41 PM, John Spicer wrote: > > I’m wondering whether some of these should be updated values of > existing macros. > > > > For example, capture of this and constexpr lambdas *could* be an > update of __cpp_lambdas. > > Agreed, sounds more reasonable to me. I can see how the

Re: [SG10] Jacksonville additions

2016-03-10 Thread Nelson, Clark
> I guess the question gets back to the issue that Jason alluded to. > To what extent, if any, does support for a later feature imply > support for an earlier one. Technically, supporting constexpr as in C++14 requires support for simulating the execution of arbitrary statements, and that's hard.

Re: [SG10] P0304: constexpr addressof

2016-03-14 Thread Nelson, Clark
> I suppose there is no hope to get people write simple code? :-) For people who care about portability between various versions of the standard and various real-world implementations -- probably not. :-| Clark ___ Features mailing list

Re: [SG10] Jacksonville additions: non-controversial?

2016-03-14 Thread Nelson, Clark
> > Finally, I proposed making the new headers from the parallelism TS > > consistent with those from the fundamentals TS by adding macros > (with > > specific values) defined within those headers: > > > > __cpp_lib_exception_list > > __cpp_lib_execution_policy > > Fine with me. (Why do we need

[SG10] New draft of Jacksonville additions

2016-03-14 Thread Nelson, Clark
Here's a new draft. Significant changes: I deleted the macros identifying all of the brand-new headers, from both fundamentals and parallelism: The proposal (with rationale) is now that non-const data for string needs no macro, and similarly for enum construction rules. I have added

[SG10] P0272: non-const string data

2016-03-11 Thread Nelson, Clark
The paper proposing a new overload for string::data didn't propose a feature-test macro. The first question is, would one be useful for it? I'm afraid this is an area where I don't have enough experience to trust my guesses. Clark ___ Features mailing

[SG10] P0036: fold expressions

2016-03-11 Thread Nelson, Clark
> On 03/10/2016 02:30 AM, Agustín Bergé wrote: > > For P0036, "Unary Folds and Empty Parameter Packs", maybe bump > > `__cpp_fold_expressions`? > > No. If you want your code to be compatible for both C++14 and > C++17, simply write the (previously implicit) default yourself. > No need for an

[SG10] Jacksonville additions: non-controversial?

2016-03-11 Thread Nelson, Clark
Several of my proposals have attracted no comments so far: __cpp_hex_float NEW __cpp_range_based_for BUMP __cpp_aggregate_bases NEW searcher design mistake no macro I also want to specifically call attention to the hardware interference (cache-line) size

[SG10] P0018 and P0170: lambda-related changes

2016-03-11 Thread Nelson, Clark
> > I think it would be perfectly reasonable to bump __cpp_constexpr > again > > for lambdas. > > Fine with me. If anyone doesn't agree with this direction, please speak up. > > But I'm still leaning towards having a separate macro for > > capturing *this, at least in part for consistency

[SG10] Updated SD-6 draft

2016-07-22 Thread Nelson, Clark
Many thanks to Richard and Jonathan for their recent suggestions. I have posted a new draft: http://wiki.edg.com/pub/Wg21oulu/SG10/sd-6.html#recs.cpp17 It reflects most of the recent discussion. (I am not yet assuming we have reached consensus about any/optional.) I have also done quite a bit

Re: [SG10] WebEx meeting invitation: SG10

2016-08-25 Thread Nelson, Clark
I was distracted by personal issues the week before the 15th, and I didn't manage to put out an agenda in a timely manner. So we're trying again. The document we'll be reviewing is posted at: http://wiki.edg.com/pub/Wg21oulu/SG10/sd-6.html Again, I'd kind of like people to look at everything in

Re: [SG10] WebEx meeting invitation: SG10

2016-08-29 Thread Nelson, Clark
Just a reminder that we're meeting in about 0.5 hours. Clark > -Original Message- > From: features-boun...@open-std.org [mailto:features-bounces@open- > std.org] On Behalf Of Nelson, Clark > Sent: Thursday, August 25, 2016 10:53 AM > To: featu...@open-std.org > Subject

Re: [SG10] __has_cpp_attribute example

2016-10-12 Thread Nelson, Clark
> This leaves ATTR_DEPRECATED undefined if the compiler doesn't > support > the __has_cpp_attribute macro, is that intended? Unless the idea is > that some other method would be used to decide if it's available, it > should be something like: > > #ifdef __has_cpp_attribute > # if

[SG10] Meeting date

2017-07-25 Thread Nelson, Clark
I'd like to call a teleconference. This Monday is the post-meeting mailing deadline, so that wouldn't be so good. And then of course there will be an eclipse the morning of August 21, so that's out. Does anyone have any problems or preferences between August 7 and August 14? The usual time

[SG10] New revision of SD-6

2017-07-25 Thread Nelson, Clark
I'm back. First, I'd like to apologize for my long absence. It was partly due to my assumption that, after the CD was voted out from Oulu, we wouldn't have to worry much about new features. It turns out I was overly optimistic. At each of the Issaquah and Kona meetings, we approved at least a

Re: [SG10] Meeting date

2017-07-26 Thread Nelson, Clark
> The 7th is bad for me and there is a CWG conference call scheduled > for the 14th. > > Some other day the week of the 21st, or maybe the 28th? Does anyone who might be interested in attending have a problem with August 28? Clark ___ Features mailing

Re: [SG10] A feature macro for mandatory copy elision

2017-10-09 Thread Nelson, Clark
Perhaps I should also ask: should the name of the macro use the word "mandatory", or would "guaranteed" (as from the original document title) be better? Clark > -Original Message- > From: features-boun...@open-std.org [mailto:features-bounces@open- > std.or

Re: [SG10] A feature macro for mandatory copy elision

2017-10-09 Thread Nelson, Clark
> After a while pondering, the best example I've got to demonstrate a > need for the feature test macro is something like this: > > #ifdef __cpp_mandatory_copy_elision > > NoCopyNoMove indirectFactory() { > return factory(1); // ill-formed prior to C++17 > } > #endif At this point I gather

Re: [SG10] A feature macro for mandatory copy elision

2017-10-09 Thread Nelson, Clark
> > After a while pondering, the best example I've got to > demonstrate a > > need for the feature test macro is something like this: > > > > #ifdef __cpp_mandatory_copy_elision > > > > NoCopyNoMove indirectFactory() { > > return factory(1); //

Re: [SG10] SD-6: ready for C++17?

2017-10-09 Thread Nelson, Clark
02, 2017 12:58 > To: Jonathan Wakely <c...@kayari.org> > Cc: Nelson, Clark <clark.nel...@intel.com>; featu...@isocpp.open- > std.org <featu...@open-std.org> > Subject: Re: [SG10] SD-6: ready for C++17? > > Me too. > > John. > > > O

Re: [SG10] A feature macro for mandatory copy elision

2017-10-05 Thread Nelson, Clark
Unless anyone expresses an objection to this idea, I'm going to incorporate it. I'll probably post an updated draft tomorrow. After that I will start on updating the section references in the C++17 table. Clark > -Original Message- > From: features-boun...@open-std.org

Re: [SG10] P0032R3: Homogeneous interface for variant, any and optional

2017-09-07 Thread Nelson, Clark
> > Should we go ahead and do that? If not, is the reason that we think > there were no shipped implementations of the originally-defined > interfaces for "any" and "optional"? > > There definitely were shipping implementations. I think we should > update the __cp_lib_any and __cpp_lib_optional

[SG10] P0032R3: Homogeneous interface for variant, any and optional

2017-09-07 Thread Nelson, Clark
I noticed that, although our draft says that there should be no macro for P0032R3, we have no statement of rationale for that absence. So I looked into the situation a little closer, to see if I could figure out the reason. I think we were thinking that the changes to variant were being made at

Re: [SG10] WebEx meeting invitation: SG10

2017-09-06 Thread Nelson, Clark
, with the expectation that WG21 would approve all subsequent revisions. In other words, we need to explicitly consider and decide how to sequence our goals. Clark > -Original Message- > From: Nelson, Clark > Sent: Tuesday, September 05, 2017 13:18 > To: featu...@open-std.org > Cc: 'Vi

[SG10] Filesystem questions

2017-09-06 Thread Nelson, Clark
So it looks like the only remaining questions in the C++17 table that we haven't considered yet are what to do about new features in the filesystem library. Unless someone on this list comes up with a suggestion, I'll reach out to Beman for ideas on that. Clark

[SG10] SD-6: ready for C++17?

2017-09-28 Thread Nelson, Clark
The pre-Albuquerque mailing is only about two weeks away, so I'd better stop sitting on this. Please see: http://wiki.edg.com/pub/Wg21albuquerque/SG10/sd-6.html My hope is to publish this as P0096R5 in the mailing, and then update SD-6 from that, preferably before the meeting (assuming I hear

Re: [SG10] SD-6: ready for C++17?

2017-10-11 Thread Nelson, Clark
.@open-std.org [mailto:features-bounces@open- > std.org] On Behalf Of Nelson, Clark > Sent: Monday, October 09, 2017 10:41 > To: features@isocpp.open-std.org <featu...@open-std.org> > Subject: Re: [SG10] SD-6: ready for C++17? > > I have posted another revision: > > http://w

Re: [SG10] Example for __cpp_lib_byte

2017-10-20 Thread Nelson, Clark
> Furthermore, since we usually are in the business of standardizing > things > that users otherwise have to write many times themselves: Has SG10 > considered actively defining a header library > that does > the above for all the things it can, the idea being that users who > have to > target