提交 62be4c85 编写于 作者: S Sergey Zubkov

ES.28: drop broken and unnecessary example, closes #1590

上级 9efcaf07
......@@ -10972,16 +10972,6 @@ It nicely encapsulates local initialization, including cleaning up scratch varia
return val;
}();
##### Example
string var = [&] {
if (!in) return ""; // default
string s;
for (char c : in >> c)
s += toupper(c);
return s;
}(); // note ()
If at all possible, reduce the conditions to a simple set of alternatives (e.g., an `enum`) and don't mix up selection and initialization.
##### Enforcement
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册