It can be rewritten in
typedef void (*T) (int&, int&);
T fn = x;
The 2nd statement is obvious that this issue should have been resolved = x;. In the first statement, we do Tas a type synonym void(*)(int&, int&), which means:
- function pointer (
(*…)) - return
void - and takes 2 arguments
int&, int&.
source
share