Although the parameter types as declared are different, the determination of whether two function declarations refer to the same function only considers the parameter types after decaying array & function to pointers and removing top-level cv-qualifiers ; see http://eel.is/c++draft/basic.scope.scope#4 & http://eel.is/c++draft/dcl.fct#5
Both declarations of
f
refer to the same function. mrdox produces the following output:Although the parameter types as declared are different, the determination of whether two function declarations refer to the same function only considers the parameter types after decaying array & function to pointers and removing top-level cv-qualifiers ; see http://eel.is/c++draft/basic.scope.scope#4 & http://eel.is/c++draft/dcl.fct#5