<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/57023>57023</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [Support] TaskQueue.h - use of deprecated std::result_of_t
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            llvm:core
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          RKSimon
      </td>
    </tr>
</table>

<pre>
    Now that we're building with C++17 these uses need refactoring to use std::invoke_result
```
[37/275/173/484] Building CXX object unittests\Support\CMakeFiles\SupportTests.dir\TaskQueueTest.cpp.obj
E:\llvm\llvm-project\llvm\include\llvm/Support/TaskQueue.h(41): warning C4996: 'std::result_of_t': warning STL4014: std::result_of and std::result_of_t are deprecated in C++17. They are superseded by std::invoke_result and std::invoke_result_t.
E:\llvm\llvm-project\llvm\include\llvm/Support/TaskQueue.h(65): note: see reference to class template instantiation 'llvm::TaskQueue::Task<Callable>' being compiled
E:\llvm\llvm-project\llvm\include\llvm/Support/TaskQueue.h(81): warning C4996: 'std::result_of_t': warning STL4014: std::result_of and std::result_of_t are deprecated in C++17. They are superseded by std::invoke_result and std::invoke_result_t.
E:\llvm\llvm-project\llvm\include\llvm/Support/TaskQueue.h(87): warning C4996: 'std::result_of_t': warning STL4014: std::result_of and std::result_of_t are deprecated in C++17. They are superseded by std::invoke_result and std::invoke_result_t.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJztVUtznDAM_jXm4gkD5rUcOCQkXPqYabOH3HYMFosbL2b8yE7-fWWy2Wym6aGHntrBA1gS0qdPsui1eG6-6iN1E3f0CIRVBmjvpRJy3tOjdBNtCbvBlVZoBBaot2DpDCCogZEPTptg6nRQUOsEya5xyflJP8LOgPXKkeSWJNekTE7rZVvcZBVhHasKvKdVhvd8k5Pilt68AmgfHqjuf8DgqJ-lc2CdJUV775dFG4dv7Rf-CJ1UcCHeBqtYSIOiLbeP3zx4CMJ4WJYY3b3EvwtAi1app8PpcbUYHWK9SeU8KC_gVcC618isO3uOJ8I2eUpYjQ7pkZt5RZ7XdRkESOmZlBc2dnrcoYfq0vx--zlP0jyIfrWmfBYfiHeOcqyWgMXAwB0WRM5v1YrpdoLn1cL6BYwFgRb9829K9D7GO9XOxX-BsbI4MTZrB2veAKGjwMA8QOinQXFrqYPDojA7TM46PjvJndRzoHUNsMI9e37bkqxtuVK8Vyi8Q2vaQyB60IcF20X8hYw2_3vgTxmr_gHGzmMvgiYtyyTJijLLI9Fkos5qHjnpFDQ4Dc9T7ZZe0ESv1sGK-VxA_iityBvVTM4tNqhYh2uP89v3MfY8bk61eFcy1klrPQ5P1hVVwrJoasaqz-tcQJlWrAYObDPyMh3rYsiTMs3KCM8UKBsAE8ZOZ3DQBv8dDKFHsmEJY8kmqfFKsiwuaib4piw3XIwjGyqSJ3DgUsXh21ibfWSaFVTv9xaVSobxfVbiDJB7_N2sAdE_927Spvn-6V4e9Byt-JsV_E-iFzHV">