Open olleyOop opened 2 months ago
Same error for me as well any solution for this problem ?
go in to the tinyconsole library and switch this
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); return this; }
With this
TinyString& TinyString::operator=(TinyString && other) { if (this == &other) return this; clear(); std::swap(other.str, str); std::swap(other.size, size); std::swap(other.free, free); return this; }
go in to the tinyconsole library and switch this
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); return this; }
With this
TinyString& TinyString::operator=(TinyString && other) { if (this == &other) return this; clear(); std::swap(other.str, str); std::swap(other.size, size); std::swap(other.free, free); return this; }
Thank You friend, also can you help one more thing ? Could you please tell the file name ? Really sorry for silly question.
Tinystring.cpp
I'm getting the same error, but my Tinystring.cpp already uses std::swap. Besides, the error above says that the call in TinyTerm::onKey is ambiguous. If I change "exchange" to "::exchange" to force the use of the template at the top of the file, the ambiguity is broken. But then I'm getting another error:
/tmp/.arduinoIDE-unsaved2024930-2070929-yr320l.vzzcp/simple-broker/simple-broker.ino: In function 'void setup()':
/tmp/.arduinoIDE-unsaved2024930-2070929-yr320l.vzzcp/simple-broker/simple-broker.ino:29:41: error: 'red' is not a member of 'TinyConsole'
29 | Console << TinyConsole::red << "****** PLEASE MODIFY ssid/password *************" << endl;
| ^~~
/tmp/.arduinoIDE-unsaved2024930-2070929-yr320l.vzzcp/simple-broker/simple-broker.ino:38:27: error: 'green' is not a member of 'TinyConsole'
38 | Console << TinyConsole::green << "Connected to " << ssid << "IP address: " << WiFi.localIP() << endl;
and indeed TinyConsole does not have any such members...
There are also numerous other errors, I think this is not kept up to date.
Hello,
after I updated the library in Arduino IDE 2.3.2 I can't compile my project anymore. Even if I try to compile the example "simple-broker" I get the following error:
TinyMqtt 0.9.16 TinyConsole 0.4.6
Any help would be appreciated.