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

C++20 removed std::result_of #1069

Open
QuellaZhang opened this issue Feb 17, 2020 · 0 comments
Open

C++20 removed std::result_of #1069

QuellaZhang opened this issue Feb 17, 2020 · 0 comments

Comments

@QuellaZhang
Copy link

std::result_of was deprecated in C++17 and removed in C++20. In /std:c++17 mode, this triggers a deprecation warning in recent versions of MSVC. In /std:c++latest mode, now that microsoft/STL#380 has been merged, this will trigger an error in VS 2019 16.6 Preview 2.

The next release msvc toolset will emit the following error:
F:\gitP\leapmotion\autowiring\src\autowiring\Parallel.h(148): error C2039: 'result_of': is not a member of 'std'
F:\gitP\leapmotion\autowiring\src\autowiring\Parallel.h(148): error C2653: 'result_of': is not a class or namespace name
F:\gitP\leapmotion\autowiring\src\autowiring\Parallel.h(148): error C2146: syntax error: missing '>' before identifier 'type'
F:\gitP\leapmotion\autowiring\src\autowiring\Parallel.h(148): error C2062: type 'unknown-type' unexpected
F:\gitP\leapmotion\autowiring\src\autowiring\Parallel.h(148): error C2039: 'value': is not a member of '`global namespace''

F:\gitP\leapmotion\autowiring\src\autowiring\Parallel.h(149): error C2062: type 'unknown-type' unexpected
F:\gitP\leapmotion\autowiring\src\autowiring\Parallel.h(149): error C2039: 'type': is not a member of '`global namespace''
F:\gitP\leapmotion\autowiring\src\autowiring\Parallel.h(150): error C2334: unexpected token(s) preceding '{'; skipping apparent function body

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

No branches or pull requests

1 participant