Merge pull request #8841 from Techjar/remove-result-of Replace usage of std::result_of with std::invoke_result