Skip to content

In C++ function pointers are rarely used and is unneeded.ย #30318

@jormundgand

Description

@jormundgand

[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.


Associated WorkItem - 357259

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions