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

std::result_of is depreciated, code doesn't compile on MSVC #759

Closed
TrianglesPCT opened this issue Aug 7, 2020 · 1 comment
Closed

std::result_of is depreciated, code doesn't compile on MSVC #759

TrianglesPCT opened this issue Aug 7, 2020 · 1 comment

Comments

@TrianglesPCT
Copy link

TrianglesPCT commented Aug 7, 2020

This line in type_traits.h

template <typename T>
using result_of_t = typename std::result_of<T>::type;

Does not compile on MSVC because std::result_of was removed

I think you are supposed to use std::invoke_result, but switching to it just results in other compilation issues

@derekmauro
Copy link
Member

This is a duplicate of #649, and the discussion includes a workaround. See also #705 as well.

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

No branches or pull requests

2 participants