[lib] Drop 'inline' from 'inline constexpr' variable templates.#4625
[lib] Drop 'inline' from 'inline constexpr' variable templates.#4625jensmaurer wants to merge 1 commit intocplusplus:mainfrom
Conversation
c32d513 to
2971a3d
Compare
|
@timsong-cpp , should be much better now. |
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. |
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? |
|
IIRC we were uncomfortable with "arguably redundant before CWG2387" 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 |
Yes, that was my understanding. "It's probably redundant, but there's an active core issue" wasn't very reassuring 🙂 |
|
Editorial meeting 2021-06-18: This is pending the [module.import] fix mentioned by @zygoloid. |
|
@CaseyCarter , please take a look. @tkoeppe , rebased. |
|
Thanks! |
There was a problem hiding this comment.
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
|
@CaseyCarter , thanks, fixed. |
|
All good, all done? |
Since CWG2387, constexpr variable templates have external linkage.
|
Applied with commit 9ac5555 |
|
(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.) |
Since CWG2387, constexpr variable templates have external linkage.
…added in P2655R3 as per #4625.
…added in P2655R3 as per #4625.
Since CWG2387, 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?