提交 070f6cb6 编写于 作者: P Palana

Add DStr move assignment operator

上级 5afedb10
......@@ -31,6 +31,12 @@ public:
dstr_move(&str, &other.str);
}
inline DStr &operator=(DStr &&other)
{
dstr_move(&str, &other.str);
return *this;
}
inline ~DStr() {dstr_free(&str);}
inline operator dstr*() {return &str;}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册