fix bug in move constructor

This commit is contained in:
2020-07-31 00:00:26 +03:00
parent 79e17b48b8
commit 1d5c979607
6 changed files with 30 additions and 20 deletions

View File

@@ -91,7 +91,7 @@ public:
PIString & operator =(const PIString & o) {if (this == &o) return *this; clear(); *this += o; return *this;}
PIString & operator =(PIString && o) {PIString moved(std::move(o)); swap(moved); return *this;}
PIString & operator =(PIString && o) {swap(o); return *this;}
/*! \brief Return c-string representation of string
* \details Converts content of string to c-string and return