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

revert-23830-2.0-beta
Zeng Jinle 5 years ago committed by GitHub
parent 14f50d63a4
commit 77b4dc80c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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_;
};

Loading…
Cancel
Save