220 4692 <1432df09-bb46-4552-85fa-68f364ed67fc@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: potswa@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Changing lambda scope
Date: Mon, 27 May 2013 18:46:57 -0700 (PDT)
Lines: 345
Approved: news@gmane.org
Message-ID: <1432df09-bb46-4552-85fa-68f364ed67fc@isocpp.org>
References: <ae01f736-d3ac-48d6-981f-702b9ab2b3b3@isocpp.org>
 <01190eaa-6223-4d3c-a9d3-b0d850aab98e@isocpp.org>
 <CAFk2RUa61wcA=26qp-tR2QX4Y5hRE0j7AAahRKcJ38Nxph+WrQ@mail.gmail.com>
 <35af8d3d-8ed6-441c-94d0-b898711190b1@isocpp.org>
 <CAFk2RUbcP65Wcxf55za-CfcRbPiR917Lg5qVGfYC0S0T7A9nQA@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_3118_21559876.1369705617144"
X-Trace: ger.gmane.org 1369784683 7931 80.91.229.3 (28 May 2013 23:44:43 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 28 May 2013 23:44:43 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCW25A7E3QCRB2MCSWGQKGQEOK5M4NI@isocpp.org Wed May 29 01:44:44 2013
Return-path: <std-proposals+bncBCW25A7E3QCRB2MCSWGQKGQEOK5M4NI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ie0-f200.google.com ([209.85.223.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCW25A7E3QCRB2MCSWGQKGQEOK5M4NI@isocpp.org>)
	id 1UhTZK-00055Y-KN
	for gclcip-std-proposals@m.gmane.org; Wed, 29 May 2013 01:44:43 +0200
Original-Received: by mail-ie0-f200.google.com with SMTP id 10sf35600678ied.11
        for <gclcip-std-proposals@m.gmane.org>; Tue, 28 May 2013 16:44:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-beenthere:date:from:to:message-id:in-reply-to:references:subject
         :mime-version:x-original-sender:reply-to:precedence:mailing-list
         :list-id:x-google-group-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=ct9vGuQsRgHozQwybjrm4/9rIYcVd/WubEVQlM7JyXQ=;
        b=E8by7HIKLVCF/IOyE/Bz8loV/4qqTXIwMMJH+Xm2sIHlNFBdD/s9b8bNGoj7NaJgHH
         JA8msBi2xNMFYTfGviMdopwYbtKPPjd71HeHAXMP7H0C/Wi/cN8Q6K/gujJOpg8Z1r/z
         y6RzRg6Xlr4EW+l7FicUQ5p8AuWoCQqyAfN8QOKRLIEAZqhUfbp0EXNPEgjIEOdP7H8E
         2fi+CMQ0C8Tm3HE2povhuon0h+xzhTiueJRBUzEvTc8+gwvVQzCWimziNwCsR8wgti40
         K9O3UBOSfkvwoJwDhIDrZlFwwd/toGWnQdoY3b2Jk3l58wZVm4cY5AJZI8DFjoMqmZI0
         btDA==
X-Received: by 10.42.191.145 with SMTP id dm17mr117383icb.11.1369784681719;
        Tue, 28 May 2013 16:44:41 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.153.110 with SMTP id vf14ls1594915igb.10.canary; Tue, 28
 May 2013 16:44:40 -0700 (PDT)
X-Received: by 10.50.56.116 with SMTP id z20mr16864224igp.1.1369784680846;
        Tue, 28 May 2013 16:44:40 -0700 (PDT)
Original-Received: by 10.50.89.196 with SMTP id bq4msigb;
        Mon, 27 May 2013 18:46:59 -0700 (PDT)
X-Received: by 10.50.196.227 with SMTP id ip3mr1101404igc.10.1369705618613;
        Mon, 27 May 2013 18:46:58 -0700 (PDT)
In-Reply-To: <CAFk2RUbcP65Wcxf55za-CfcRbPiR917Lg5qVGfYC0S0T7A9nQA@mail.gmail.com>
X-Original-Sender: potswa@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post?hl=en>,
 <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?hl=en&topic=25838>,
 <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:4692
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/4692>

------=_Part_3118_21559876.1369705617144
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable


>
> The inner lambda got passed out of the namespace just fine, and that work=
s=20
> in C++11.
>

Oops, good example. Bottom line: the problem is new in C++11, but only with=
=20
contrivance, and C++14 gives it the first real exposure.
=20

> Interesting.
>

I think the fundamental approach of the Standard is to define the=20
associated classes (which share their invisible friends) and then define=20
the associated namespaces as a simple function thereof.

Despite associating the enclosing namespace through multiple levels of=20
class nesting, both GCC and Clang only expose the invisible friends of the=
=20
immediately enclosing class.

namespace n {
struct s {
    struct n1 {
        struct n2 {};
        friend int f( s::n1::n2 ) { return 3; }
    };
    friend int g( n1::n2 ) { return 3; }
};
friend int h( n1::n2 ) { return 3; }
}
int i =3D f( n::s::n1::n2() ); // OK: invisible friend of enclosing class.=
=20
Implementations agree.
int j =3D g( n::s::n1::n2() ); // Error: invisible friend of second enclosi=
ng=20
class. Implementations agree.
int k =3D h( n::s::n1::n2() ); // Error: member of unassociated namespace.=
=20
Implementations disagree with std.


On Monday, May 27, 2013 8:34:03 PM UTC+8, DeadMG wrote:
>
> IYAM, a class should always have as an associated namespace the most=20
> nested namespace which either is, or contains, the scope it is declared i=
n.


Unfortunately, a function can be declared and defined in different=20
namespaces.

namespace a {
    void x();
}

void a::x() {
    my_template( []{} ); // associated with a or not?
}

Both Clang and GCC associate a local class according to the namespace=20
enclosing its function, not its declaration. This seems more intuitive to=
=20
me and more analogous to the way nested classes already work. My proposed=
=20
change would be to adjust 3.4.2/2,
 =20
   -=20
  =20
   =97 If T is a class type (including unions) *but not a local class type*=
,=20
   its associated classes are: the class itself; the class of which it is a=
=20
   member, if any; and its direct and indirect base classes. Its associated=
=20
   namespaces are the namespaces of which its associated classes are member=
s.
   - *=97 If T is a local class type, its associated namespaces and classes=
=20
   determined as if it were a member of the class or namespace of which its=
=20
   enclosing function is a member.*

There are other issues with the paragraph, though: multiple nesting levels=
=20
disassociate the namespace, and forward-declared enumerations may be=20
associated improperly.

--=20

---=20
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposa=
ls/?hl=3Den.



------=_Part_3118_21559876.1369705617144
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<blockquote style=3D"margin: 0px 0px 0px 0.8ex; border-left: 1px solid rgb(=
204, 204, 204); padding-left: 1ex;" class=3D"gmail_quote">The inner lambda =
got passed out of the namespace just fine, and that works in C++11.<br></bl=
ockquote><div><br>Oops, good example. Bottom line: the problem is new in C+=
+11, but only with contrivance, and C++14 gives it the first real exposure.=
<br>&nbsp;</div><blockquote class=3D"gmail_quote" style=3D"margin: 0;margin=
-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"lt=
r"><div><div class=3D"gmail_quote"><div></div><div>Interesting.<br></div></=
div></div></div></blockquote><div><br>I think the fundamental approach of t=
he Standard is to define the associated classes (which share their invisibl=
e friends) and then define the associated namespaces as a simple function t=
hereof.<br><br>Despite associating the enclosing namespace through multiple=
 levels of class nesting, both GCC and Clang only expose the invisible frie=
nds of the immediately enclosing class.<br><br><div class=3D"prettyprint" s=
tyle=3D"background-color: rgb(250, 250, 250); border-color: rgb(187, 187, 1=
87); border-style: solid; border-width: 1px; word-wrap: break-word;"><code =
class=3D"prettyprint"><div class=3D"subprettyprint"><span style=3D"color: #=
008;" class=3D"styled-by-prettify">namespace</span><span style=3D"color: #0=
00;" class=3D"styled-by-prettify"> n </span><span style=3D"color: #660;" cl=
ass=3D"styled-by-prettify">{</span><span style=3D"color: #000;" class=3D"st=
yled-by-prettify"><br></span><span style=3D"color: #008;" class=3D"styled-b=
y-prettify">struct</span><span style=3D"color: #000;" class=3D"styled-by-pr=
ettify"> s </span><span style=3D"color: #660;" class=3D"styled-by-prettify"=
>{</span><span style=3D"color: #000;" class=3D"styled-by-prettify"></span><=
span style=3D"color: #000;" class=3D"styled-by-prettify"></span><span style=
=3D"color: #008;" class=3D"styled-by-prettify"><br>&nbsp;&nbsp;&nbsp; struc=
t</span><span style=3D"color: #000;" class=3D"styled-by-prettify"> n1 </spa=
n><span style=3D"color: #660;" class=3D"styled-by-prettify">{</span><span s=
tyle=3D"color: #000;" class=3D"styled-by-prettify"><br>&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp; </span><span style=3D"color: #008;" class=3D"styled-=
by-prettify">struct</span><span style=3D"color: #000;" class=3D"styled-by-p=
rettify"> n2 </span><span style=3D"color: #660;" class=3D"styled-by-prettif=
y">{};</span><span style=3D"color: #000;" class=3D"styled-by-prettify"></sp=
an><br><span style=3D"color: #000;" class=3D"styled-by-prettify"></span><di=
v style=3D"margin-left: 40px;"><span style=3D"color: #000;" class=3D"styled=
-by-prettify"></span></div><span style=3D"color: #008;" class=3D"styled-by-=
prettify"><code class=3D"prettyprint"><span style=3D"color: #008;" class=3D=
"styled-by-prettify">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; friend int<=
/span><span style=3D"color: #000;" class=3D"styled-by-prettify"> f</span><s=
pan style=3D"color: #660;" class=3D"styled-by-prettify">(</span><span style=
=3D"color: #000;" class=3D"styled-by-prettify"> s</span><span style=3D"colo=
r: #660;" class=3D"styled-by-prettify">::</span><span style=3D"color: #000;=
" class=3D"styled-by-prettify">n1</span><span style=3D"color: #660;" class=
=3D"styled-by-prettify">::</span><span style=3D"color: #000;" class=3D"styl=
ed-by-prettify">n2 </span><span style=3D"color: #660;" class=3D"styled-by-p=
rettify">)</span><span style=3D"color: #000;" class=3D"styled-by-prettify">=
 </span><span style=3D"color: #660;" class=3D"styled-by-prettify">{</span><=
span style=3D"color: #000;" class=3D"styled-by-prettify"> </span><span styl=
e=3D"color: #008;" class=3D"styled-by-prettify">return</span><span style=3D=
"color: #000;" class=3D"styled-by-prettify"> </span><span style=3D"color: #=
066;" class=3D"styled-by-prettify">3</span><span style=3D"color: #660;" cla=
ss=3D"styled-by-prettify">;</span><span style=3D"color: #000;" class=3D"sty=
led-by-prettify"> </span><span style=3D"color: #660;" class=3D"styled-by-pr=
ettify">}</span><span style=3D"color: #000;" class=3D"styled-by-prettify"><=
br>&nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp; </span></code>friend</span><=
span style=3D"color: #000;" class=3D"styled-by-prettify"> </span><span styl=
e=3D"color: #008;" class=3D"styled-by-prettify">int</span><span style=3D"co=
lor: #000;" class=3D"styled-by-prettify"> g</span><span style=3D"color: #66=
0;" class=3D"styled-by-prettify">(</span><span style=3D"color: #000;" class=
=3D"styled-by-prettify"> n1</span><span style=3D"color: #660;" class=3D"sty=
led-by-prettify">::</span><span style=3D"color: #000;" class=3D"styled-by-p=
rettify">n2 </span><span style=3D"color: #660;" class=3D"styled-by-prettify=
">)</span><span style=3D"color: #000;" class=3D"styled-by-prettify"> </span=
><span style=3D"color: #660;" class=3D"styled-by-prettify">{</span><span st=
yle=3D"color: #000;" class=3D"styled-by-prettify"> </span><span style=3D"co=
lor: #008;" class=3D"styled-by-prettify">return</span><span style=3D"color:=
 #000;" class=3D"styled-by-prettify"> </span><span style=3D"color: #066;" c=
lass=3D"styled-by-prettify">3</span><span style=3D"color: #660;" class=3D"s=
tyled-by-prettify">;</span><span style=3D"color: #000;" class=3D"styled-by-=
prettify"> </span><span style=3D"color: #660;" class=3D"styled-by-prettify"=
>}</span><span style=3D"color: #000;" class=3D"styled-by-prettify"><br></sp=
an><span style=3D"color: #660;" class=3D"styled-by-prettify">};</span><span=
 style=3D"color: #000;" class=3D"styled-by-prettify"></span><span style=3D"=
color: #660;" class=3D"styled-by-prettify"></span><br><code class=3D"pretty=
print"><span style=3D"color: #008;" class=3D"styled-by-prettify">friend</sp=
an><span style=3D"color: #000;" class=3D"styled-by-prettify"> </span><span =
style=3D"color: #008;" class=3D"styled-by-prettify">int</span><span style=
=3D"color: #000;" class=3D"styled-by-prettify"> h</span><span style=3D"colo=
r: #660;" class=3D"styled-by-prettify">(</span><span style=3D"color: #000;"=
 class=3D"styled-by-prettify"> n1</span><span style=3D"color: #660;" class=
=3D"styled-by-prettify">::</span><span style=3D"color: #000;" class=3D"styl=
ed-by-prettify">n2 </span><span style=3D"color: #660;" class=3D"styled-by-p=
rettify">)</span><span style=3D"color: #000;" class=3D"styled-by-prettify">=
 </span><span style=3D"color: #660;" class=3D"styled-by-prettify">{</span><=
span style=3D"color: #000;" class=3D"styled-by-prettify"> </span><span styl=
e=3D"color: #008;" class=3D"styled-by-prettify">return</span><span style=3D=
"color: #000;" class=3D"styled-by-prettify"> </span><span style=3D"color: #=
066;" class=3D"styled-by-prettify">3</span><span style=3D"color: #660;" cla=
ss=3D"styled-by-prettify">;</span><span style=3D"color: #000;" class=3D"sty=
led-by-prettify"> </span><span style=3D"color: #660;" class=3D"styled-by-pr=
ettify">}</span><span style=3D"color: #000;" class=3D"styled-by-prettify"><=
br></span></code><span style=3D"color: #660;" class=3D"styled-by-prettify">=
}</span><span style=3D"color: #000;" class=3D"styled-by-prettify"><br></spa=
n><span style=3D"color: #008;" class=3D"styled-by-prettify">int</span><span=
 style=3D"color: #000;" class=3D"styled-by-prettify"> i </span><span style=
=3D"color: #660;" class=3D"styled-by-prettify">=3D</span><span style=3D"col=
or: #000;" class=3D"styled-by-prettify"> f</span><span style=3D"color: #660=
;" class=3D"styled-by-prettify">(</span><span style=3D"color: #000;" class=
=3D"styled-by-prettify"> n</span><span style=3D"color: #660;" class=3D"styl=
ed-by-prettify">::</span><span style=3D"color: #000;" class=3D"styled-by-pr=
ettify">s</span><span style=3D"color: #660;" class=3D"styled-by-prettify">:=
:</span><span style=3D"color: #000;" class=3D"styled-by-prettify">n1</span>=
<span style=3D"color: #660;" class=3D"styled-by-prettify">::</span><span st=
yle=3D"color: #000;" class=3D"styled-by-prettify">n2</span><span style=3D"c=
olor: #660;" class=3D"styled-by-prettify">()</span><span style=3D"color: #0=
00;" class=3D"styled-by-prettify"> </span><span style=3D"color: #660;" clas=
s=3D"styled-by-prettify">);</span><span style=3D"color: #000;" class=3D"sty=
led-by-prettify"> // OK: invisible friend of enclosing class. Implementatio=
ns agree.<br></span><span style=3D"color: #008;" class=3D"styled-by-prettif=
y">int</span><span style=3D"color: #000;" class=3D"styled-by-prettify"> j <=
/span><span style=3D"color: #660;" class=3D"styled-by-prettify">=3D</span><=
span style=3D"color: #000;" class=3D"styled-by-prettify"> g</span><span sty=
le=3D"color: #660;" class=3D"styled-by-prettify">(</span><span style=3D"col=
or: #000;" class=3D"styled-by-prettify"> n</span><span style=3D"color: #660=
;" class=3D"styled-by-prettify">::</span><span style=3D"color: #000;" class=
=3D"styled-by-prettify">s</span><span style=3D"color: #660;" class=3D"style=
d-by-prettify">::</span><span style=3D"color: #000;" class=3D"styled-by-pre=
ttify">n1</span><span style=3D"color: #660;" class=3D"styled-by-prettify">:=
:</span><span style=3D"color: #000;" class=3D"styled-by-prettify">n2</span>=
<span style=3D"color: #660;" class=3D"styled-by-prettify">()</span><span st=
yle=3D"color: #000;" class=3D"styled-by-prettify"> </span><span style=3D"co=
lor: #660;" class=3D"styled-by-prettify">);</span><span style=3D"color: #00=
0;" class=3D"styled-by-prettify"> // Error: invisible friend of second encl=
osing class. Implementations agree.<br>int k</span><code class=3D"prettypri=
nt"><span style=3D"color: #000;" class=3D"styled-by-prettify"> =3D h</span>=
<span style=3D"color: #660;" class=3D"styled-by-prettify">(</span><span sty=
le=3D"color: #000;" class=3D"styled-by-prettify"> n</span><span style=3D"co=
lor: #660;" class=3D"styled-by-prettify">::</span><span style=3D"color: #00=
0;" class=3D"styled-by-prettify">s</span><span style=3D"color: #660;" class=
=3D"styled-by-prettify">::</span><span style=3D"color: #000;" class=3D"styl=
ed-by-prettify">n1</span><span style=3D"color: #660;" class=3D"styled-by-pr=
ettify">::</span><span style=3D"color: #000;" class=3D"styled-by-prettify">=
n2</span><span style=3D"color: #660;" class=3D"styled-by-prettify">()</span=
><span style=3D"color: #000;" class=3D"styled-by-prettify"> </span><span st=
yle=3D"color: #660;" class=3D"styled-by-prettify">);</span><span style=3D"c=
olor: #000;" class=3D"styled-by-prettify"> // Error: member of unassociated=
 namespace. Implementations disagree with std.</span></code></div></code></=
div><br><br>On Monday, May 27, 2013 8:34:03 PM UTC+8, DeadMG wrote:<blockqu=
ote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;border-left=
: 1px #ccc solid;padding-left: 1ex;">IYAM,
 a class should always have as an associated namespace the most nested=20
namespace which either is, or contains, the scope it is declared in.</block=
quote><br>Unfortunately, a function can be declared and defined in differen=
t namespaces.<br><br><div class=3D"prettyprint" style=3D"background-color: =
rgb(250, 250, 250); border-color: rgb(187, 187, 187); border-style: solid; =
border-width: 1px; word-wrap: break-word;"><code class=3D"prettyprint"><div=
 class=3D"subprettyprint"><span style=3D"color: #008;" class=3D"styled-by-p=
rettify">namespace</span><span style=3D"color: #000;" class=3D"styled-by-pr=
ettify"> a </span><span style=3D"color: #660;" class=3D"styled-by-prettify"=
>{</span><span style=3D"color: #000;" class=3D"styled-by-prettify"><br>&nbs=
p; &nbsp; </span><span style=3D"color: #008;" class=3D"styled-by-prettify">=
void</span><span style=3D"color: #000;" class=3D"styled-by-prettify"> x</sp=
an><span style=3D"color: #660;" class=3D"styled-by-prettify">();</span><spa=
n style=3D"color: #000;" class=3D"styled-by-prettify"><br></span><span styl=
e=3D"color: #660;" class=3D"styled-by-prettify">}</span><span style=3D"colo=
r: #000;" class=3D"styled-by-prettify"><br><br></span><span style=3D"color:=
 #008;" class=3D"styled-by-prettify">void</span><span style=3D"color: #000;=
" class=3D"styled-by-prettify"> a</span><span style=3D"color: #660;" class=
=3D"styled-by-prettify">::</span><span style=3D"color: #000;" class=3D"styl=
ed-by-prettify">x</span><span style=3D"color: #660;" class=3D"styled-by-pre=
ttify">()</span><span style=3D"color: #000;" class=3D"styled-by-prettify"> =
</span><span style=3D"color: #660;" class=3D"styled-by-prettify">{</span><s=
pan style=3D"color: #000;" class=3D"styled-by-prettify"><br>&nbsp; &nbsp; m=
y_template</span><span style=3D"color: #660;" class=3D"styled-by-prettify">=
(</span><span style=3D"color: #000;" class=3D"styled-by-prettify"> </span><=
span style=3D"color: #660;" class=3D"styled-by-prettify">[]{}</span><span s=
tyle=3D"color: #000;" class=3D"styled-by-prettify"> </span><span style=3D"c=
olor: #660;" class=3D"styled-by-prettify">);</span><span style=3D"color: #0=
00;" class=3D"styled-by-prettify"> </span><span style=3D"color: #800;" clas=
s=3D"styled-by-prettify">// associated with a or not?</span><span style=3D"=
color: #000;" class=3D"styled-by-prettify"><br></span><span style=3D"color:=
 #660;" class=3D"styled-by-prettify">}</span><span style=3D"color: #000;" c=
lass=3D"styled-by-prettify"><br></span></div></code></div><br>Both Clang an=
d GCC associate a local class according to the namespace enclosing its func=
tion, not its declaration. This seems more intuitive to me and more analogo=
us to the way nested classes already work. My proposed change would be to a=
djust 3.4.2/2,<br>

=09
	=09
	=09
=09
=09
	=09

=09
	=09
	=09
=09
=09
		<div class=3D"page" title=3D"Page 62">
			<div class=3D"layoutArea">
				<div class=3D"column">
					<ul style=3D"list-style-type: none"><li>
							<p><span style=3D"font-size: 10.000000pt; font-family: 'LMRoman10'">=
=97 If </span><span style=3D"font-size: 10.000000pt; font-family: 'LMMono10=
'">T </span><span style=3D"font-size: 10.000000pt; font-family: 'LMRoman10'=
">is a class type (including unions) <b>but not a local class type</b>, its=
 associated classes are: the class itself; the class of which it is a
member, if any; and its direct and indirect base classes. Its associated na=
mespaces are the namespaces
of which its associated classes are members.</span></p></li><li><span style=
=3D"font-size: 10.000000pt; font-family: 'LMRoman10'"><b>=97 If T is a loca=
l class type, its associated namespaces and classes determined as if it wer=
e a member of the class or namespace of which its enclosing function is a m=
ember.</b></span></li></ul><p>There are other issues with the paragraph, th=
ough: multiple nesting levels disassociate the namespace, and forward-decla=
red enumerations may be associated improperly.<br></p></div>
			</div>
		</div>
=09

=09
</div>

<p></p>

-- <br />
&nbsp;<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/?hl=3Den">http://groups.google.com/a/isocpp.org/group/std-pro=
posals/?hl=3Den</a>.<br />
&nbsp;<br />
&nbsp;<br />

------=_Part_3118_21559876.1369705617144--

.
