-
Notifications
You must be signed in to change notification settings - Fork 802
P3612R1 Harmonize proxy-reference operations #8561
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
base: main
Are you sure you want to change the base?
Conversation
|
I would like to create a new subsection for each nested reference class to avoid the need to qualify each \itemdecl with the unusual |
source/utilities.tex
Outdated
| class reference { | ||
| public: | ||
| constexpr reference(const reference&) = default; | ||
| constexpr reference(const reference&) noexcept; |
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.
| constexpr reference(const reference&) noexcept; | |
| constexpr reference(const reference& x) noexcept; |
The paper adds an x here.
source/containers.tex
Outdated
| class @\libmember{reference}{vector<bool>}@ { | ||
| public: | ||
| constexpr reference(const reference&) = default; | ||
| constexpr reference(const reference&) noexcept; |
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.
| constexpr reference(const reference&) noexcept; | |
| constexpr reference(const reference& x) noexcept; |
There is also no x in the paper though. However, the paper does add an x in the synopsis of bitset::reference, and the whole point is harmonization, so I guess there ought to be an x here.
jwakely
left a comment
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.
I agree with Jan's two suggestions.
af003f3 to
8090054
Compare
|
Fixed, plus applied the noted editorial comment in the paper to reorder the members consistently. In doing so, I noticed that only Should we open an LWG issue to add that specification, and following the harmonization principle, add the same to |
Reorder the members of `reference` classes to be consistent with each other and elsewhere. First list constructors, destructor, and assignment operator. Then list accessors, and finally modifiers. Keep unary `operator~` adjacent to `flip` where both are present.
8090054 to
54f76fc
Compare
We should definitely not add it to vector bool. See the LWG mattermost on October 9 where @Bekenn observed:
i.e. |
Fixes #8471