The name of a function is a pointer to the function…
But in case of function overloading the names of two functions are the same…
So which function does the name point to?
The name of a function is a pointer to the function… But in case
Share
It depends on the context; otherwise it’s ambiguous. See this example (modified except below):
You can do this in many ways, but the #1 rule?
Avoid casts!
Otherwise you’ll break type safety and probably shoot yourself in the foot either then or later.
(Issues can come up with calling conventions, random changes you don’t notice, etc.)