Movatterモバイル変換


[0]ホーム

URL:


Issue 1692 - WG21 CWG Issues
Title
Associated namespaces of doubly-nested classes
Status
c++14
Section
6.5.4 [basic.lookup.argdep]
Submitter
David Krauss

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

Messages

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

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

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

Proposed resolution (September, 2013):

This issue is resolved by the resolution ofissue 1691.

msg4480 (view)
Date: 2013-05-29.00:00:00

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

IfT is a class type (including unions), its associated classesare: the class itself; the class of which it is a member, if any; and itsdirect and indirect base classes. Its associated namespaces are thenamespaces of which its associated classes are members.

Consider an example like

  struct A {    struct B {      struct C { };    };  };

A has one associated class, itself, and has the globalnamespace as its associated namespace.A::B has two associatedclasses,A and itself, and by virtue of its association withA, has the global namespace as its associated namespace.A::B::C has two associated classes,A::B and itself.However, because neitherA::B norA::B::C is amember of a namespace,A::B::C has no associated namespaces.

This seems like a defect.

History
DateUserActionArgs
2014-11-24 00:00:00adminsetstatus: dr -> c++14
2014-03-03 00:00:00adminsetmessages: +msg4930
2014-03-03 00:00:00adminsetstatus: ready -> dr
2013-10-14 00:00:00adminsetmessages: +msg4569
2013-10-14 00:00:00adminsetstatus: open -> ready
2013-05-29 00:00:00admincreate

[8]ページ先頭

©2009-2026 Movatter.jp