[Enter feedback here]
The focus on "C++" function pointer seems to miss the point about C++. The function pointer is a legacy from C and sees very little use in (modern at least) C++. C++ developers tend to use inheritance and lambdas, not function pointers to achieve something similar to what a delegate allows. I suggest the text is changed to use "C", when talking about function pointers. In C, only function pointers can (easily) be used to achieve something similar to delegates.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: a0e3cfc0-21d1-a453-94f2-52c86c926117
Version Independent ID: f7628623-ae76-0688-4124-848b8c636168
[Enter feedback here] The focus on "C++" function pointer seems to miss the point about C++. The function pointer is a legacy from C and sees very little use in (modern at least) C++. C++ developers tend to use inheritance and lambdas, not function pointers to achieve something similar to what a delegate allows. I suggest the text is changed to use "C", when talking about function pointers. In C, only function pointers can (easily) be used to achieve something similar to delegates.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.