Skip to content

Commit 4351331

Browse files
authored
Merge pull request #2829 from MicrosoftDocs/master
4/20/2020 AM Publish
2 parents 9266fc7 + f393860 commit 4351331

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/cpp/trivial-standard-layout-and-pod-types.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ The following examples show trivial types. In Trivial2, the presence of the `Tri
2626
```cpp
2727
struct Trivial
2828
{
29-
int i;
29+
int i;
3030
private:
3131
int j;
32-
};
32+
};
3333

3434
struct Trivial2
3535
{
3636
int i;
3737
Trivial2(int a, int b) : i(a), j(b) {}
3838
Trivial2() = default;
39-
private:
39+
private:
4040
int j; // Different access control
4141
};
4242
```
@@ -131,15 +131,15 @@ protected:
131131
// Neither trivial nor standard-layout
132132
struct A : B
133133
{
134-
int a;
134+
int a;
135135
int b;
136136
void Foo() override {} // Virtual function
137137
};
138138

139139
// Trivial but not standard-layout
140140
struct C
141-
{
142-
int a;
141+
{
142+
int a;
143143
private:
144144
int b; // Different access control
145145
};

0 commit comments

Comments
 (0)