- Notifications
You must be signed in to change notification settings - Fork803
[lib] Drop 'inline' from 'inline constexpr' variable templates.#4625
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
c32d513 to2971a3dComparejensmaurer commentedJun 5, 2021
@timsong-cpp , should be much better now. |
zygoloid commentedJun 17, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I agree that removing In passing, I did a pass through the wording to double-check that
I'm not sure whether we'd consider that editorial, but the intent of the rule is that it only applies to declarations that allow at most one definition. |
tkoeppe commentedJun 17, 2021
Thank you, that's good to know!@jwakely,@CaseyCarter: woudl you happen to have any immediate thoughts on whether the proposed change would be desirable by LWG, or perhaps on the contrary? |
CaseyCarter commentedJun 18, 2021
IIRC we were uncomfortable with "arguably redundant beforeCWG2387" and decided to keep the possibly-redundant While it wasn't an explicit discussion, I did recently mention this PR on the reflector (https://lists.isocpp.org/lib/2021/06/19716.php) as an argument to avoid adding another redundant |
jwakely commentedJun 18, 2021
Yes, that was my understanding. "It's probably redundant, but there's an active core issue" wasn't very reassuring 🙂 |
jensmaurer commentedJun 18, 2021
Editorial meeting 2021-06-18: This is pending the [module.import] fix mentioned by@zygoloid. |
jensmaurer commentedDec 16, 2022
@CaseyCarter , please take a look. @tkoeppe , rebased. |
tkoeppe commentedDec 16, 2022
Thanks! |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
CaseyCarter left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this 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.
Everything I see here is good, but I think we're missing:
- exposition-only
is-vector-bool-referenceincontainers.tex(2 places). ranges::enable_viewandranges::enable_borrowed_rangepartial specializations forspanincontainers.tex.disable_sized_sentinel_forpartial spec formove_iteratoriniterators.texuses_allocator_vprimary inmemory.tex- Everything in
meta.tex? ranges::enable_borrowed_rangepartials forempty_view,owning_view,as_rvalue_view,reverse_view,zip_view,adjacent_view,chunk_view,slide_viewinranges.texviews::istreamprimary inranges.texis_bind_expression_v,is_placeholder_v,is_execution_policy_vprimary inutilities.tex
jensmaurer commentedDec 16, 2022
@CaseyCarter , thanks, fixed. |
CaseyCarter left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this 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.
Awesome! Thanks, Jens. One little indentation nit.
Uh oh!
There was an error while loading.Please reload this page.
tkoeppe commentedDec 17, 2022
All good, all done? |
Since CWG2387, constexpr variable templates have external linkage.
jensmaurer commentedDec 18, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Applied with commit9ac5555 |
tkoeppe commentedDec 18, 2022
(I don't understand why this wasn't closed as "merged" when I rebase-squashed it. I thought it might have been a bug in GitHub.) |
SinceCWG2387, constexpr variable templates have external linkage.
…added in P2655R3 as per#4625.
SinceCWG2387, constexpr variable templates have external linkage.
Fixes#4601
@zygoloid, since const(expr) variable templates now have external linkage, it seems the "inline" is now redundant. What do you think?