Add DStr move assignment operator
This commit is contained in:
parent
5afedb1092
commit
070f6cb6a6
@ -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;}
|
||||
|
Loading…
x
Reference in New Issue
Block a user