未验证 提交 aea393c8 编写于 作者: A Akash Mozumdar 提交者: GitHub

C.180 example bugfix (#1587)

new[] needs delete[]
上级 2f0c2e58
......@@ -8502,7 +8502,7 @@ But heed the warning: [Avoid "naked" `union`s](#Ru-naked)
~Immutable_string()
{
if (size >= buffer_size)
delete string_ptr;
delete[] string_ptr;
}
const char* get_str() const
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册