Skip to content

Commit f304952

Browse files
burblebeetkoeppe
authored andcommitted
CWG2890 Defining members of local classes
1 parent fc62fb5 commit f304952

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/classes.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3331,13 +3331,13 @@
33313331

33323332
\pnum
33333333
\indextext{nested class!local class}%
3334-
If class \tcode{X} is a local class, a nested class \tcode{Y} may be
3335-
declared in class \tcode{X} and later defined in the definition of class
3336-
\tcode{X} or be later defined in the same scope as the definition of
3337-
class \tcode{X}.
33383334
\indextext{restriction!local class}%
33393335
A class nested within
33403336
a local class is a local class.
3337+
A member of a local class \tcode{X} shall be
3338+
declared only in the definition of \tcode{X} or,
3339+
if the member is a nested class,
3340+
in the nearest enclosing block scope of \tcode{X}.
33413341

33423342
\pnum
33433343
\indextext{restriction!static member local class}%

0 commit comments

Comments
 (0)