fix bug in move constructor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user