Add DStr move assignment operator

This commit is contained in:
Palana 2014-06-25 16:55:04 +02:00
parent 5afedb1092
commit 070f6cb6a6

View File

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