-
Notifications
You must be signed in to change notification settings - Fork 816
[func.wrap.ref.class] Use ArgTypes instead of Args
#8219
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14960,7 +14960,7 @@ | |
| template<class... T> | ||
| static constexpr bool @\exposidnc{is-invocable-using}@ = @\seebelownc@; // \expos | ||
|
|
||
| R (*@\exposidnc{thunk-ptr}@)(@\exposidnc{BoundEntityType}@, Args&&...) noexcept(@\placeholdernc{noex}@); // \expos | ||
| R (*@\exposidnc{thunk-ptr}@)(@\exposidnc{BoundEntityType}@, ArgTypes&&...) noexcept(@\placeholdernc{noex}@); // \expos | ||
| @\exposidnc{BoundEntityType}@ @\exposidnc{bound-entity}@; // \expos | ||
| }; | ||
|
|
||
|
|
@@ -14976,15 +14976,15 @@ | |
|
|
||
| \pnum | ||
| An object of class | ||
| \tcode{function_ref<R(Args...) \cv{} noexcept(\placeholder{noex})>} | ||
| \tcode{function_ref<R(ArgTypes...) \cv{} noexcept(\placeholder{noex})>} | ||
| stores a pointer to function \exposid{thunk-ptr} and | ||
| an object \exposid{bound-entity}. | ||
| \exposid{bound-entity} has | ||
| an unspecified trivially copyable type \exposid{BoundEntityType}, that | ||
| an unspecified trivially copyable type \linebreak{} \exposid{BoundEntityType}, that | ||
| models \libconcept{copyable} and | ||
| is capable of storing a pointer to object value or a pointer to function value. | ||
| The type of \exposid{thunk-ptr} is | ||
| \tcode{R(*)(\exposidnc{BoundEntityType}, Args\&\&...) noexcept(\placeholder{noex})}. | ||
| \tcode{R(*)(\exposidnc{BoundEntityType}, ArgTypes\&\&...) noexcept(\placeholder{noex})}. | ||
|
|
||
| \pnum | ||
| Each specialization of \tcode{function_ref} is | ||
|
|
@@ -14995,7 +14995,7 @@ | |
| Within \ref{func.wrap.ref}, | ||
| \tcode{\placeholder{call-args}} is an argument pack with elements such that | ||
| \tcode{decltype((\placeholder{call-args}\linebreak{}))...} denote | ||
| \tcode{Args\&\&...} respectively. | ||
| \tcode{ArgTypes\&\&...} respectively. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jwakely: this change is a bug fix, too, right? Here we're again referring to the class template synopsis.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah yes, that's right
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! |
||
|
|
||
| \rSec4[func.wrap.ref.ctor]{Constructors and assignment operators} | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, please don't add forced line breaks like this.
... would presumably work, assuming you were coping with overful hboxes due to
BoundEntityTypegoing off the side of the page.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me at least split off the bug fix from the discretionary tweaks then.