[SERVER-47064] Use std::invoke_result instead of std::result_of Created: 23/Mar/20  Updated: 29/Oct/23  Resolved: 24/Mar/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.0-rc0, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Security 2020-04-06
Participants:
Linked BF Score: 0

 Description   

std::result_of is deprecated in C++ 17 and removed in C++ 20. The new similar function is std::invoke_result.

Reference:
https://en.cppreference.com/w/cpp/types/result_of#Notes



 Comments   
Comment by Githook User [ 24/Mar/20 ]

Author:

{'name': 'Mark Benvenuto', 'username': 'markbenvenuto', 'email': 'mark.benvenuto@mongodb.com'}

Message: SERVER-47064 Use std::invoke_result instead of std::result_of

(cherry picked from commit 60d5baecdfe0d9e7db37bfc1194dbc8eef4cf50d)
Branch: v4.4
https://github.com/mongodb/mongo/commit/e571503393a2aed4ade2ca5a13a20913aa2b8f1d

Comment by Githook User [ 24/Mar/20 ]

Author:

{'name': 'Mark Benvenuto', 'username': 'markbenvenuto', 'email': 'mark.benvenuto@mongodb.com'}

Message: SERVER-47064 Use std::invoke_result instead of std::result_of
Branch: master
https://github.com/mongodb/mongo/commit/60d5baecdfe0d9e7db37bfc1194dbc8eef4cf50d

Generated at Thu Feb 08 05:13:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.