Skip to content

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

Merged
Chuck Walbourn (walbourn) merged 2 commits into
mainfrom
inlineconstexpr
May 13, 2026
Merged

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

Conversation

@walbourn

Copy link
Copy Markdown
Collaborator

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
Chuck Walbourn (walbourn) merged commit 2b3b3f4 into main May 13, 2026
233 checks passed
@walbourn
Chuck 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