Drop `inline`/`_INLINE_VAR` from templated `constexpr` variables in product and test codes by frederick-vs-ja · Pull Request #4546 · microsoft/STL

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@frederick-vs-ja

Copy link Copy Markdown

Contributor

Fixes #4533.

@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner

March 31, 2024 16:34

@StephanTLavavej StephanTLavavej added the enhancement

Something can be improved

label

Apr 1, 2024

@StephanTLavavej StephanTLavavej self-assigned this

Apr 1, 2024

@StephanTLavavej

Copy link Copy Markdown

Member

Thanks for the extremely careful work! I audited all changes for correctness (all were templated), found only one missed occurrence, and then audited all remaining cases of _INLINE_VAR.*constexpr and inline.*constexpr to verify that they were all plain or explicit specializations.

@StephanTLavavej StephanTLavavej removed their assignment

Apr 2, 2024

@StephanTLavavej

Copy link Copy Markdown

Member

I've pushed a commit to pre-emptively avoid a merge conflict; #4554 will be removing _INLINE_VAR from _Vector_alg_in_find_is_safe.

@StephanTLavavej StephanTLavavej self-assigned this

Apr 8, 2024

@StephanTLavavej

Copy link Copy Markdown

Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit daeb0a6 into microsoft:main

Apr 9, 2024

@StephanTLavavej

Copy link Copy Markdown

Member

Thanks for auditing all of these now-unnecessary keywords! 🪄 🔍 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@StephanTLavavej StephanTLavavej StephanTLavavej approved these changes

Labels

enhancement

Something can be improved

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

CWG-2387 cleanups: Remove inline/_INLINE_VAR from constexpr variable templates

2 participants

@frederick-vs-ja @StephanTLavavej