As I understand it, this is Not valid according to the C ++ 03 specification.
Link - C ++ 03 standard:
Section $ 8.3:
Each declarator contains exactly one declaration identifier; he calls the declared identifier. The declarator id should be a simple identifier, with the exception of the declaration of some special functions (12.3, 12.4, 13.5) and for the declaration of specialized templates or partial specializations (14.7). The declaration identifier should not be qualified, except for the definition of a member function (9.3) or a static data member (9.4) or a nested class (9.7) outside its class, a definition or explicit instantiation of a function, variable or member of a namespace class outside its namespace or definition a previously declared explicit specialization outside its namespace or the declaration of a friend function that is a member of another class or namespace (11.4).
I hope that I get the appropriate meaning of the above. I admit that reading and understanding quotes from the Standard makes me a little dizzy. Let me know if I misinterpret this.
source share