Skip to content

build: explicit_this enabled for AppleClang 17 and MSVC 19.32#723

Merged
mpusz merged 2 commits intompusz:masterfrom
alex-tee:crtp_fix
Nov 5, 2025
Merged

build: explicit_this enabled for AppleClang 17 and MSVC 19.32#723
mpusz merged 2 commits intompusz:masterfrom
alex-tee:crtp_fix

Conversation

@alex-tee
Copy link
Copy Markdown
Contributor

Both compilers do not implement the feature test macro, but they do implement explicit_this, as mentioned in their corresponding release notes:

Resolves #722.

@mpusz
Copy link
Copy Markdown
Owner

mpusz commented Sep 24, 2025

Please also run pre-commit before committing changes.

@mpusz
Copy link
Copy Markdown
Owner

mpusz commented Sep 24, 2025

Don't worry about Freestanding failures. They are caused by a CMake bug that will hopefully be resolved soon. Dependency Review is also experimental and we are working on improving it.

Both compilers do not implement the feature test macro, but they do
implement `explicit_this`, as mentioned in their corresponding release
notes:
- https://developer.apple.com/documentation/xcode-release-notes/xcode-16_3-release-notes
- https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-notes-v17.2

Resolves mpusz#722.
@alex-tee
Copy link
Copy Markdown
Contributor Author

Thanks for the review! Resolved all issues.

cmake-format was indenting the comments in a strange way so I moved all of them above the toplevel if-statement.

I've also edited the part of the docs that says explicit this support is checked via the feature test macro because that's not true in all cases.

mpusz
mpusz previously approved these changes Sep 24, 2025
Copy link
Copy Markdown
Owner

@mpusz mpusz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mpusz
Copy link
Copy Markdown
Owner

mpusz commented Nov 5, 2025

I am sorry. I had a few travels and then I forgot about this PR.

@mpusz mpusz merged commit a5c7cd3 into mpusz:master Nov 5, 2025
90 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CMake] "Deducing this" feature check failure on supported compilers when using MP_UNITS_API_NO_CRTP=ON

2 participants