提交 d8a6aaa4 编写于 作者: H hsutter

Restored two more edits

上级 024f1a05
......@@ -7909,7 +7909,7 @@ It also ensures exception safety in complex expressions.
##### Example
unique_ptr<Foo> p {new Foo{7}}; // OK: but repetitive
unique_ptr<Foo> p {new Foo{7}}; // OK: but repetitive
auto q = make_unique<Foo>(7); // Better: no repetition of Foo
......@@ -8727,7 +8727,7 @@ Switching on an enumeration is common and the compiler can warn against unusual
}
}
Such off-by-one `switch`statements are often the results of an added enumerator and insufficient testing.
Such off-by-one `switch`-statements are often the results of an added enumerator and insufficient testing.
##### Enforcement
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册