Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P1084R2 Today’s return-type-requirements Are Insufficient #2450

Merged
merged 3 commits into from Nov 24, 2018

Conversation

burblebee
Copy link
Contributor

[expr.prim.req.compound] Renamed C5 to C3 in remaining example.

Fixes #2397.

@jensmaurer jensmaurer added this to the post-2018-11 milestone Nov 13, 2018
source/expressions.tex Outdated Show resolved Hide resolved
source/expressions.tex Outdated Show resolved Hide resolved
source/expressions.tex Outdated Show resolved Hide resolved
@burblebee
Copy link
Contributor Author

This branch is failing the travis checks because commit 0af79b8 (which resolves conflicts between cwg-4 and cwg-15) refers to the new grammar term /type-constraint/ which won't exist until after cwg-15 is merged. I couldn't add this commit in cwg-15 because it doesn't have the wording that needed to be changed. How to deal with this situation moving forward?

@zygoloid please ignore the failing checks. To merge this PR, squash the one "Fixup:" commit 2a38e29, and apply commit 0af79b8 after merging motions-2018-11-cwg-15.

@W-E-Brown
Copy link
Contributor

Unless I'm missing something, the library parts of this paper (affecting Clause [concepts]) seem not yet to have been entered. See P1084R2, §5.2, top of page 5.

@CaseyCarter
Copy link
Contributor

CaseyCarter commented Nov 17, 2018

Unless I'm missing something, the library parts of this paper (affecting Clause [concepts]) seem not yet to have been entered.

I can prepare a commit with these changes, if it would be helpful (#2488). I'd like to fix UniformRandomBitGenerator as well, but it's not in a subclause of [concepts]. Is that too great a stretch to be termed editorial? (EDIT: I need to write a paper to cleanup all the usage in the P0896 concepts in any case - which is clearly too great a change to be editorial - so it's no great burden to cleanup UniformRandomBitGenerator in that paper as well.)

@jensmaurer
Copy link
Member

jensmaurer commented Nov 17, 2018

@burblebee, Walter is right: The 5.2 changes are missing. You can use the changes in #2488, but I'd suggest that you integrate them in this pull request so that the entire paper is applied in one place (and yes, that's a "fixup").
@CaseyCarter, if you're writing a cleanup paper anyway, maybe we can postpone that? Or maybe create a separate editorial issue so that we can weigh the "editorial" property independently?

@jensmaurer jensmaurer added the changes requested Changes to the wording or approach have been requested and not yet applied. label Nov 17, 2018
@CaseyCarter
Copy link
Contributor

@CaseyCarter, if you're writing a cleanup paper anyway, maybe we can postpone that?

Yes, I'll just put it in the followup.

source/expressions.tex Outdated Show resolved Hide resolved
source/expressions.tex Outdated Show resolved Hide resolved
while a constraint of the form
\tcode{\{ E \} -> Concept<A$_1$, A$_2$, . . . , A$_n$>;} is equivalent to
\tcode{E; requires Concept<decltype((E)), A$_1$, A$_2$, ..., A$_n$>;}.
\end{note}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This note is overall a little hard to read due to the frequent switching to and from code font and the E; requires ...; construction appearing to be two separate clauses. Perhaps a different presentation would help -- maybe converting the tcode here into codeblocks, or more drastically something like:

[Example: Given a concept named X,

requires {
  { E1 } -> X;
  { E2 } -> X<A1, A2, ..., An>;
}

is equivalent to

requires {
  E1; requires X<decltype((E1))>;
  E2; requires X<decltype((E2)), A1, A2, ..., An>;
};

-- end example]

@W-E-Brown What do you think?

source/expressions.tex Outdated Show resolved Hide resolved
@W-E-Brown
Copy link
Contributor

W-E-Brown commented Nov 21, 2018 via email

Dawn Perchik and others added 3 commits November 23, 2018 21:06
Language-side changes.

[expr.prim.req.compound] Renamed C5 to C3 in remaining example.
Library-side changes: replace
  requires { E; requires Concept<decltype((E)), A, B>; }
with
  requires { { E } -> Concept<A, B>; }
@zygoloid zygoloid merged commit e7c077e into master Nov 24, 2018
@jensmaurer jensmaurer deleted the motions-2018-11-cwg-4 branch October 19, 2019 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes requested Changes to the wording or approach have been requested and not yet applied.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants