File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 156
156
\begin {codeblock }
157
157
int a; // defines \tcode {a}
158
158
extern const int c = 1; // defines \tcode {c}
159
- int f(int x) { return x+ a; } // defines \tcode {f} and defines \tcode {x}
159
+ int f(int x) { return x + a; } // defines \tcode {f} and defines \tcode {x}
160
160
struct S { int a; int b; }; // defines \tcode {S}, \tcode {S::a}, and \tcode {S::b}
161
161
struct X { // defines \tcode {X}
162
162
int x; // defines non-static data member \tcode {x}
802
802
int j();
803
803
void q();
804
804
}
805
- namespace { int l= 1; }
805
+ namespace { int l = 1; }
806
806
// the potential scope of \tcode {l} is from its point of declaration
807
807
// to the end of the translation unit
808
808
809
809
namespace N {
810
810
int g(char a) { // overloads \tcode {N::g(int)}
811
- return l+a; // \tcode {l} is from unnamed namespace
811
+ return l + a; // \tcode {l} is from unnamed namespace
812
812
}
813
813
814
814
int i; // error: duplicate definition
991
991
992
992
\begin {codeblock }
993
993
typedef int N;
994
- template<N X, typename N, template<N Y> class T> struct A;
994
+ template<N X, class N, template<N Y> class T> struct A;
995
995
\end {codeblock }
996
996
997
997
Here, \tcode {X} is a non-type template parameter of type \tcode {int} and \tcode {Y} is a
You can’t perform that action at this time.
0 commit comments