未验证 提交 e2dbebed 编写于 作者: J Juha Reunanen 提交者: GitHub

Do not allocate an excessive amount of memory in example code. (#1788)

This reverts commit de20b33d.
上级 e5839299
......@@ -20613,7 +20613,7 @@ and errors (when we didn't deal correctly with semi-constructed objects consiste
: mx(check_size(x))
, my(check_size(y))
// now we know x and y have a valid size
, data(mx*my*sizeof(int)) // will throw std::bad_alloc on error
, data(mx * my) // will throw std::bad_alloc on error
{
// picture is ready-to-use
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册