delete copy constructor and operator assign for most classes

This commit is contained in:
Chunting Gu
2021-06-15 18:52:53 +08:00
parent b76ce67726
commit 751a3539ae
8 changed files with 25 additions and 6 deletions
+1 -4
View File
@@ -27,9 +27,6 @@ public:
explicit Url(const std::string& str, bool encode = false);
Url(Url&&) = default;
Url& operator=(Url&&) = default;
const std::string& scheme() const {
return scheme_;
}
@@ -134,7 +131,7 @@ public:
std::regex operator()() const {
std::regex::flag_type flags = std::regex::ECMAScript | std::regex::icase;
return std::regex(url_, flags);
return std::regex{ url_, flags };
}
private: