Why member name lookup is defined in terms of subobjects?

1,086 views
Skip to first unread message

Language Lawyer

unread,
Mar 12, 2019, 11:04:08 AM3/12/19
to std-dis...@isocpp.org
[class.member.lookup]/3 defines the lookup set as follows:
> The lookup set for f in C, called S(f,C), consists of two component sets: the declaration set, a set of members named f; and the subobject set, a set of subobjects where declarations of these members (possibly including using-declarations) were found.

[class.member.lookup]/5 says:
> If C has base classes, calculate the lookup set for f in each direct base class subobject B_i

etc.

Having *subobjects* used in context of name lookup is very strange.
Reply all
Reply to author
Forward
0 new messages