Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[native] Switch C++ standard to C++23 #9325

Merged
merged 2 commits into from
Oct 25, 2024
Merged

[native] Switch C++ standard to C++23 #9325

merged 2 commits into from
Oct 25, 2024

Conversation

grendello
Copy link
Contributor

@grendello grendello commented Sep 25, 2024

Whenever size_t or ssize_t types are used and an integer literal is
involved, use the uz or z literal suffix. This is to make the
intent explicit as well as to avoid hidden type conversions. Despite
being more verbose, this makes the code more type-safe.

@grendello grendello changed the title Fix a handful of compilation errors [native] Switch C++ standard to C++23 Sep 25, 2024
@@ -22,7 +22,7 @@ void
MonodroidRuntime::log_traces (JNIEnv *env, TraceKind kind, const char *first_line) noexcept
{
if (!tracing_init_done) {
std::lock_guard lock (tracing_init_lock);
Copy link
Member

Choose a reason for hiding this comment

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

Now I have to wonder why a7b5768 didn't use xamarin::android::lock_guard when it was introduced in b90d3ab.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My mistake, I missed it back then.

@grendello grendello marked this pull request as ready for review September 26, 2024 13:12
@grendello
Copy link
Contributor Author

grendello commented Sep 26, 2024

The MAUI integration tests appear to fail in other PRs too

@grendello
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Whenever `size_t` or `ssize_t` types are used and an integer literal is
involved, use the `uz` or `z` literal suffix.  This is to make the
intent explicit as well as to avoid hidden type conversions.  Despite
being more verbose, this makes the code more type-safe.
@jonpryor jonpryor merged commit aa668a5 into main Oct 25, 2024
58 checks passed
@jonpryor jonpryor deleted the dev/grendel/c++23 branch October 25, 2024 18:47
@github-actions github-actions bot locked and limited conversation to collaborators Nov 25, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants