diff --git a/library.json b/library.json index 3fdec5d..47e36c7 100644 --- a/library.json +++ b/library.json @@ -8,7 +8,7 @@ }, "dependencies": { }, - "version": "0.4.3", + "version": "0.4.4", "exclude": "", "examples": "examples/*/*.ino", "frameworks": "arduino", diff --git a/library.properties b/library.properties index 893bcbf..e37f988 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=TinyConsole -version=0.4.3 +version=0.4.4 author=Francois BIOT, HSaturn, maintainer=Francois BIOT, HSaturn, sentence=A tiny command line and term handler diff --git a/src/TinyString.cpp b/src/TinyString.cpp index 95a4941..75399ba 100644 --- a/src/TinyString.cpp +++ b/src/TinyString.cpp @@ -33,9 +33,9 @@ TinyString& TinyString::operator=(TinyString && other) { if (this == &other) return *this; clear(); - str = std::exchange(other.str, str); - size_ = std::exchange(other.size_, size_); - free_ = std::exchange(other.free_, free_); + std::swap(other.str, str); + std::swap(other.size_, size_); + std::swap(other.free_, free_); return *this; }