puzzlecracker wrote:
example is taken from Evolution of C++.
I don't understand how the following will be interpreted:
typedef int P();
typedef int Q();
Seems like ::P is a synonym for the type "a function that takes
no arguments and returns an int".
::Q is the same type synonym as ::P.
>
class X{
static P(Q);
static Q(P);
These two lines are syntax errors. Implicit return type is not
allowed (there is nothing between 'static' and the names).
};
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask