hsaturn / TinyMqtt

ESP 8266 / 32 / WROOM Small footprint Mqtt Broker and Client
GNU General Public License v3.0
191 stars 40 forks source link

Version 0.9.12 was working but when recompiled throws errors in TinyString.cpp #68

Closed Hwerow closed 1 year ago

Hwerow commented 1 year ago

Error messages for str, size and free exchange is not a member of std namespace std has no member exchange

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; } and the same problem with 0.9.18 Is there a way of not loading TinyConsole? Using VSCode and PlatformIO

hsaturn commented 1 year ago

Hello

Strange, I'm using TinyConsole and all is ok under platformio.

I know that TinyString has problems (and thus is not used). Try to remove the file TinyString.cpp until I found a real solution.

If this does not work, you can safely remove the offending lines (unless you are using TinyString that is not at all recommended : unit tests: image

Thanks for the report

Hwerow commented 1 year ago

Thanks Deleting TinyString.cpp now allows compilation with 0.9.19.

Thankyou for your program as I have found it very useful, and have just implemented a broker to broker arrangement

Cheers