-
Notifications
You must be signed in to change notification settings - Fork 769
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
P2374R4 views::cartesian_product #5647
Conversation
$[\tcode{ranges::distance(*this, ranges::begin(*\exposid{parent_}))},$\newline | ||
$\tcode{ranges::distance(*this, ranges::end(*\exposid{parent_}))}]$. |
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.
Doesn't \crange
work 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.
\crange
won't probably apply the\newline
in the middle.- I'm still not convinced that
\range
and friends are the right tools for mathemetical (not: iterator) ranges, despite ample precedent.
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.
\crange
won't probably apply the\newline
in the middle.
Maybe \brk{}
could work:
regex.tex:\range{p}{p + char_traits<charT>::\brk{}length(p)}, and
strings.tex:@\range{str.data()}{\brk{}str.data() + str.size()}@
utilities.tex:In the function descriptions that follow, let $i$ be in the range \range{0}{sizeof...\brk{}(Types)}
- I'm still not convinced that
\range
and friends are the right tools for mathemetical (not: iterator) ranges, despite ample precedent.
That's fair. In term of maintenance, it'd probably be easier to use \range
and friends until some math range macros are made available if they're worth it. That way, you don't miss out updating manual math ranges.
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's open an issue about how to spell ranges then. It sounds like that's not entirely obvious.
This comment was marked as resolved.
This comment was marked as resolved.
According to #5694 (comment), |
503c318
to
84ce17f
Compare
e0f69c7
to
46c267c
Compare
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.
There are uses of tuple-or-pair
left.
Actually, those uses are its definition. #5694 also removes it. It's now an unused exposition-only thing, so I think this PR can also remove it. |
46c267c
to
37aaf87
Compare
Right. Is there an edit instruction anywhere to remove that? If not then let's remove it after the motions. |
@JohelEGP: Hm, |
These changes are part of LWG-Motion 12 (P2165R4, "Compatibility between tuple and tuple-like objects").
37aaf87
to
d899065
Compare
Yes. The actual instruction in https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2165r4.pdf is
And |
Fixes #5605
Fixes cplusplus/papers#1044