common/params: not copyable (#29834)

old-commit-hash: 7816edda57894c7967fcd931294a31d000e6508c
This commit is contained in:
Dean Lee
2023-09-08 12:44:58 +08:00
committed by GitHub
parent bc6367bdf9
commit f48dc2b0ef
2 changed files with 5 additions and 2 deletions
+5 -1
View File
@@ -15,7 +15,11 @@ enum ParamKeyType {
class Params {
public:
Params(const std::string &path = {});
explicit Params(const std::string &path = {});
// Not copyable.
Params(const Params&) = delete;
Params& operator=(const Params&) = delete;
std::vector<std::string> allKeys() const;
bool checkKey(const std::string &key);
ParamKeyType getKeyType(const std::string &key);