Talk:cpp/types/result of
From cppreference.com
Implementation of the INVOKE overloads is not necessary for the implementation of result_of: INVOKE is only referred to in unevaluated contexts, it is never ODR-used. Removing the bodies of the INVOKE implementations may make the code more readable. Casey (talk) 11:10, 8 December 2014 (PST)
- You've put them in, you're probably best at deciding what to do with them. I feel that INVOKEs made it way too long, and if someone wants a complete implementation, they can look at their library. See for example std::aligned_storage, which is only showing the key part of the implementation. --Cubbi (talk) 11:20, 8 December 2014 (PST)
[edit] Difference between result_of and invoke_resuld
I don't get the reasons or the problems with result_of and why they cannot be fixed, and whether (and if yes: why) 'invoke_result' will fix them. Perhaps an example code snippet would help to illustrate the problems with 'result_of' and how it is fixed by using 'invoke_result'. --217.229.68.136 04:59, 20 April 2022 (PDT)