Skip to content

Fix C++20 comparisons for XMFLOAT{3,4}X{3,4}#303

Merged
walbourn merged 1 commit into
microsoft:mainfrom
JBBieniek:fix-clang-cpp20-warnings
May 13, 2026
Merged

Fix C++20 comparisons for XMFLOAT{3,4}X{3,4}#303
walbourn merged 1 commit into
microsoft:mainfrom
JBBieniek:fix-clang-cpp20-warnings

Conversation

@JBBieniek
Copy link
Copy Markdown
Contributor

Fixes #244.
Replaces defaulted C++20 comparison operators for the affected matrix storage types (XMFLOAT{3,4}X{3,4} with explicit implementations because Clang deletes the defaulted operators for union-like classes.
Tested with:

  • x64-Debug-Clang
  • BUILD_CXX20=ON

@JBBieniek
Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@walbourn walbourn self-assigned this May 11, 2026
@walbourn walbourn added the conformance Related to supporting non-MSVC compilers label May 11, 2026
@walbourn walbourn changed the title Fix C++20 comparisons for XNFLOAT{3,4}X{3,4} Fix C++20 comparisons for XMFLOAT{3,4}X{3,4} May 13, 2026
@walbourn
Copy link
Copy Markdown
Member

Test coverage added here: walbourn/directxmathtest@dd7c86a

@walbourn walbourn merged commit 9c1dc2a into microsoft:main May 13, 2026
211 checks passed
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.

C++20 builds with clang/LLVM generate warnings

2 participants