未验证 提交 77b4dc80 编写于 作者: Z Zeng Jinle 提交者: GitHub

code polish for adding const qualifier, test=develop, test=document_fix (#23248)

上级 14f50d63
......@@ -90,8 +90,8 @@ class ResourcePool : public std::enable_shared_from_this<ResourcePool<T>> {
private:
std::vector<T *> instances_;
std::function<T *()> creator_;
std::function<void(T *)> deleter_;
const std::function<T *()> creator_;
const std::function<void(T *)> deleter_;
std::mutex mtx_;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册