Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Address c++20 TODO comments #10956

Merged

Conversation

Dentomologist
Copy link
Contributor

@Dentomologist Dentomologist commented Aug 6, 2022

  • Use a structured binding in a place that was previously a problem (see commit message for details).
  • Use time_since_epoch now that the standard specifies it as Unix time.

This PR used to replace the workaround function FillWithFallbacks(table) in Jit64_Tables.cpp with table.fill(...) now that array.fill is constexpr, but the android and freebsd builders don't support constexpr fill. It also used to add make_unique_for_overwrite in a couple places, but most of the builders don't support that.

dir_path is used by PanicAlertFormatT, which prior to PR 10209 used a
lambda. Before c++20, referring to structured bindings in lambda captures
was forbidden. The problem is now doubly fixed, so put the structured
binding back in.
@AdmiralCurtiss AdmiralCurtiss merged commit 9c99620 into dolphin-emu:master Aug 24, 2022
11 checks passed
@Dentomologist Dentomologist deleted the address_cpp20_todo_comments branch April 28, 2023 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants