Skip to content

C++17 or later use inline constexpr vars#305

Merged
walbourn merged 2 commits into
mainfrom
inlineconstexpr
May 13, 2026
Merged

C++17 or later use inline constexpr vars#305
walbourn merged 2 commits into
mainfrom
inlineconstexpr

Conversation

@walbourn
Copy link
Copy Markdown
Member

There were reports that DirectXMath XMGLOBALCONST variables were not working correctly with C++20 modules. The solution was to use inline constexpr which I now apply uniformly for C++17 or later.

@walbourn walbourn self-assigned this May 13, 2026
@walbourn walbourn requested a review from jenatali May 13, 2026 20:25
@walbourn walbourn added the conformance Related to supporting non-MSVC compilers label May 13, 2026
@walbourn walbourn requested a review from scm-xbox May 13, 2026 21:17
@walbourn walbourn merged commit 2b3b3f4 into main May 13, 2026
233 checks passed
@walbourn walbourn deleted the inlineconstexpr branch May 13, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conformance Related to supporting non-MSVC compilers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XMGLOBALCONST poorly initialized when used within a cpp modules project

3 participants