C.86 example accesses private members #541

fixed
This commit is contained in:
Bjarne Stroustrup 2017-05-16 15:56:16 -04:00
parent 9620ea8d43
commit 7206b618a4

View File

@ -6109,7 +6109,7 @@ This is not just slow, but if a memory allocation occurs for the elements in `tm
(Simple) When a class has a `swap` member function, it should be declared `noexcept`.
### <a name="Rc-swap-noexcept"></a>C.85: Make `swap` `noexcept`
### <a name="Rc-swap-noexcept"></a>: Make `swap` `noexcept`
##### Reason
@ -6129,7 +6129,7 @@ Asymmetric treatment of operands is surprising and a source of errors where conv
##### Example
class X {
struct X {
string name;
int number;
};