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

Replace usage of std::result_of with std::invoke_result #8841

Merged
merged 1 commit into from
Jun 1, 2020

Conversation

Techjar
Copy link
Contributor

@Techjar Techjar commented Jun 1, 2020

std::result_of is deprecated in C++17, and removed in C++20. Microsoft has gone ahead with the removal as of Visual Studio 16.6.0, so before this change our code is broken there.

Externals/Qt also needs to be updated to the latest version to fully fix the build.

std::result_of is deprecated in C++17, and removed in C++20. Microsoft
has gone ahead with the removal as of Visual Studio 16.6.0, so before
this change our code is broken there.
@lioncash lioncash merged commit 84d67b3 into dolphin-emu:master Jun 1, 2020
@Filoppi
Copy link
Contributor

Filoppi commented Jun 2, 2020

You might want to update this issue if you fix all the cases:
https://bugs.dolphin-emu.org/issues/12086

@Techjar
Copy link
Contributor Author

Techjar commented Jun 3, 2020

Yeah we're just waiting on the Qt update.

@chrisis123
Copy link

chrisis123 commented Jun 6, 2020

Just a heads up, if you update externals to QT 5.14.2 (currently it's still on 5.14.1) it should build fine again - I managed to build it with cmake on VS 2019 16.6.1 while using building against my local copy of QT 5.14.2 - likely the standard VS Project will work fine too if using 5.14.2 (didnt't try it though)

@Techjar
Copy link
Contributor Author

Techjar commented Jun 6, 2020

Yeah that's exactly what we're going to do. Changing your local VS project to C++17 also works as an easier temporary solution, since this only happens because we use C++latest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants