Skip to content

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

Open
JBBieniek wants to merge 1 commit into
microsoft:mainfrom
JBBieniek:fix-clang-cpp20-warnings
Open

Fix C++20 comparisons for XNFLOAT{3,4}X{3,4}#303
JBBieniek wants to merge 1 commit into
microsoft:mainfrom
JBBieniek:fix-clang-cpp20-warnings

Conversation

@JBBieniek
Copy link
Copy Markdown

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
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
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