F
Fraser Ross
10.2/2 of the C++ standard says this:
"The following steps define the result of name lookup in a class
scope, C. First, every declaration for the name in the class and in
each of its base class sub-objects is considered. A member name f in
one subobject B hides a member name f in a sub-object A if A is a base
class sub-object of B. Any declarations that are so hidden are
eliminated from consideration. Each of these declarations that was
introduced by a using-declaration is considered to be from each sub-
object of C that is of the type containing the declaration designated
by the using-declaration. If the resulting set of declarations are not
all from sub-objects of the same type, or the set has a nonstatic
member and includes members from distinct sub-objects, there is an
ambiguity and the program is ill-formed...."
I don't understand the sentence beginning with the word Each. Is it
wrong?
Fraser.
"The following steps define the result of name lookup in a class
scope, C. First, every declaration for the name in the class and in
each of its base class sub-objects is considered. A member name f in
one subobject B hides a member name f in a sub-object A if A is a base
class sub-object of B. Any declarations that are so hidden are
eliminated from consideration. Each of these declarations that was
introduced by a using-declaration is considered to be from each sub-
object of C that is of the type containing the declaration designated
by the using-declaration. If the resulting set of declarations are not
all from sub-objects of the same type, or the set has a nonstatic
member and includes members from distinct sub-objects, there is an
ambiguity and the program is ill-formed...."
I don't understand the sentence beginning with the word Each. Is it
wrong?
Fraser.