Merge pull request #626 from fleurs03/master

fix unqualified call to 'std::move'
This commit is contained in:
Yi Zhang 2025-05-14 11:27:01 +08:00 committed by GitHub
commit 330ef620f7
3 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ struct cstr {
return *this;
}
inline cstr& operator=(cstr&& s) {
ptr = move(s.ptr);
ptr = std::move(s.ptr);
return *this;
}
inline cstr& operator=(const cstr& s) {

View File

@ -157,11 +157,11 @@ template<class... Args>
unique_ptr<Expr> make_op(const string& str, Args&&... args) {
vector<unique_ptr<Expr>> children;
children.reserve(sizeof...(args));
auto f = [&](unique_ptr<Expr>& c) { children.emplace_back(move(c)); };
auto f = [&](unique_ptr<Expr>& c) { children.emplace_back(std::move(c)); };
// Brace-enclosed initializers
int dummy[] = {(f(args), 0)...};
(void)dummy;
return make(str, move(children));
return make(str, std::move(children));
}
template <typename Func>

View File

@ -135,7 +135,7 @@ struct Log {
inline void end() {
if (g_supports_color) out << color_end;
out << '\n';
send_log(move(out), level, verbose);
send_log(std::move(out), level, verbose);
}
inline void flush() { flush_log(); }