-
Notifications
You must be signed in to change notification settings - Fork 751
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
[LWG 1] P3504R0 C++ Standard Library Ready Issues #7459
base: main
Are you sure you want to change the base?
Conversation
…rator new should not be constrained
[specialized.algorithms.general] Changed to "function templates" as per #6265.
…_carry_engine code
…ared_for_overwrite/std::allocate_shared_for_overwrite
[ostream.formatted.print] New paragraphs not numbered as indicated since they are part of the \effects clause.
… of std::memcpy
…able entity should consider decaying
[optional.assign] Removed "<T>" from declaration to match that in synopsis.
…lloc>)'s nested generator may be ill-formed
…not yet marked freestanding
[template.bitset.general] [vector.bool.pspc] bitset already removed.
Yes: "Apply the changes for all Ready and Tentatively Ready issues in P3504R0 (C++ Standard Library Ready Issues to be moved in Wrocław, Nov. 2024) to the C++ working paper." |
source/iostreams.tex
Outdated
\tcode{os} is a stream that refers to a terminal that | ||
is only capable of displaying Unicode via a native Unicode API, |
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.
Per discussion on the LWG reflectors, "only" is ambiguous here:
\tcode{os} is a stream that refers to a terminal that | |
is only capable of displaying Unicode via a native Unicode API, | |
\tcode{os} is a stream that refers to a terminal that | |
is capable of displaying Unicode only via a native Unicode API, |
("Get out with this change that's not in the ingress paper and come back after the motion is merged" is a perfectly valid response to this suggestion.)
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.
This change was requested and agreed to on the LWG reflector. I think it qualifies as an editorial improvement that clarifies the intended meaning.
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.
Yes, that's better. done.
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.
It looks like this change hasn't been pushed to the branch though?
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.
Line 7849 needs the same change.
… LWG discussion
@@ -16995,6 +16995,9 @@ | |||
template<class R2, class V2, class Alloc2, class Unused> | |||
requires @\libconcept{same_as}@<typename generator<R2, V2, Alloc2>::yielded, yielded> | |||
auto yield_value(ranges::elements_of<generator<R2, V2, Alloc2>&&, Unused> g) noexcept; | |||
template<class R2, class V2, class Alloc2, class Unused> | |||
requires same_as<typename generator<R2, V2, Alloc2>::yielded, yielded> |
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.
Do we want to use \libconcept{same_as}
or was it intentionally omitted because it's on the declaration immediately above?
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.
We want \libconcept everywhere a library concept appears. This is refactoring-safe and if we ever want to have color highlighting for concept names (for example), we actually can do that.
@@ -17122,6 +17125,9 @@ | |||
template<class R2, class V2, class Alloc2, class Unused> | |||
requires @\libconcept{same_as}@<typename generator<R2, V2, Alloc2>::yielded, yielded> | |||
auto yield_value(ranges::elements_of<generator<R2, V2, Alloc2>&&, Unused> g) noexcept; | |||
template<class R2, class V2, class Alloc2, class Unused> | |||
requires same_as<typename generator<R2, V2, Alloc2>::yielded, yielded> |
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.
Same question about \libconcept
here
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.
Same answer. \libconcept, please
@@ -9261,8 +9261,6 @@ | |||
|
|||
// bit reference | |||
class @\libmember{reference}{vector<bool>}@ { | |||
constexpr 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.
For the record, the friend declarations were removed by #6427
@@ -1969,6 +1969,7 @@ | |||
\item \tcode{to_address(a) == addressof(*a)}, | |||
\item \tcode{to_address(b) == to_address(a) + D(b - a)}, | |||
\item \tcode{to_address(c) == to_address(a) + D(c - a)}, | |||
\item \tcode{address(I\{\})} is well-defined, |
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.
This should be to_address
not address
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.
Move two occurrences of "only" to later in the sentence, for more goodly Englishing.
Change address
to to_address
.
Use \libconcept
for same_as
, twice
\begin{itemize} | ||
\item | ||
If \tcode{stream} refers to a terminal that | ||
is only capable of displaying Unicode via a native Unicode API, |
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.
is only capable of displaying Unicode via a native Unicode API, | |
is capable of displaying Unicode only via a native Unicode API, |
Fixes #7413.
Notes: I assumed the Tentatively Ready issues were to be applied also.
Also fixes cplusplus/papers#1983