提交 3539e064 编写于 作者: I Igor Canadi

Merge pull request #558 from aamihailov/master

fix compilation error (same as fix #284)
......@@ -1431,7 +1431,9 @@ class Benchmark {
}
Slice AllocateKey(std::unique_ptr<const char[]>* key_guard) {
key_guard->reset(new char[key_size_]);
char* data = new char[key_size_];
const char* const_data = data;
key_guard->reset(const_data);
return Slice(key_guard->get(), key_size_);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册