In the section «9.3.4.6 Functions» of the C++23 Standard there is a confusing footnote after the paragraph
«3 A type of either form is a function type.80»
«80) As indicated by syntax, cv-qualifiers are a significant component in function return types.»
Let’s consider a simple declaration
struct A
{
void f() const {}
void f() {}
};
And how is the cv-qualifier significant component of the function return types? The both functions have return type void.
The footnote requires a clarification. What does this footnote mean?
With best regards
(Vlad from Moscow)