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 deprecation #30

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Apr 23, 2023

  1. std::result_of deprecation

    See [here](https://en.cppreference.com/w/cpp/types/result_of#Notes) for reasons why `std::invoke_result_t` is to be used over `std::result_of<>::type`.
    
    Code also amended functionally to make the template variadic (whitespace and naming amendments preferential and optional).
    
    At the very least, lines 3 and 6 need to be amended to include `typename` in order to compile.
    
    .:. Line 3 .:.
    std::future<std::result_of<F(A&&)>::type>
    std::future<typename std::result_of<F(A&&)>::type>
    
    .:. Line 6 .:.
    typedef std::result_of<F(A&&)>::type result_type;
    typedef typename std::result_of<F(A&&)>::type result_type;
    ITHelpDec authored Apr 23, 2023
    Configuration menu
    Copy the full SHA
    a572967 View commit details
    Browse the repository at this point in the history