Movatterモバイル変換


[0]ホーム

URL:


Issue 1691 - WG21 CWG Issues
Title
Argument-dependent lookup and opaque enumerations
Status
c++14
Section
6.5.4 [basic.lookup.argdep]
Submitter
David Krauss

Created on2013-05-27.00:00:00 last changed136 months ago

Messages

msg4929 (view)
Date: 2014-02-15.00:00:00

[Moved to DR at the February, 2014 meeting.]

msg4568 (view)
Date: 2013-09-15.00:00:00

Proposed resolution (September, 2013):

Change 6.5.4 [basic.lookup.argdep] paragraph 2 as follows:

...The sets of namespaces and classes are determined in the followingway:

  • ...

  • IfT is a class type (including unions), its associatedclasses are: the class itself; the class of which it is a member, if any;and its direct and indirect base classes. Its associated namespaces are theinnermost enclosing namespaces ofwhich itsassociated classesare members. Furthermore..

  • IfT is an enumeration type, its associated namespace istheinnermost enclosing namespacein which it isdefinedof its declaration. If it isa classmember, its associated class is the member's class; else it has noassociated class.

  • ...

This resolution also resolves issues1690and1692.

msg4479 (view)
Date: 2013-05-27.00:00:00

According to 6.5.4 [basic.lookup.argdep] paragraph 2,

IfT is an enumeration type, its associated namespace is thenamespace in which it is defined. If it is class member, its associatedclass is the member's class; else it has no associated class.

This does not take into account opaque enumerations, which can bedefined in an enclosing namespace of the one of which is a member.

History
DateUserActionArgs
2014-11-24 00:00:00adminsetstatus: dr -> c++14
2014-03-03 00:00:00adminsetmessages: +msg4929
2014-03-03 00:00:00adminsetstatus: ready -> dr
2013-10-14 00:00:00adminsetmessages: +msg4568
2013-10-14 00:00:00adminsetstatus: open -> ready
2013-05-27 00:00:00admincreate

[8]ページ先頭

©2009-2026 Movatter.jp