You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bok dečki,
I've been using the library with GCC 13.2 but after updating to 14.1 this error appears:
/root/prj/x86_build/_deps/async-mqtt5-src/include/async_mqtt5/detail/control_packet.hpp: In member function 'void async_mqtt5::packet_id_allocator::free(uint16_t)':
/root/prj/x86_build/_deps/async-mqtt5-src/include/async_mqtt5/detail/control_packet.hpp:143:32: error: 'upper_bound' is not a member of 'std'; did you mean 'lower_bound'?
143 | auto it = std::upper_bound(
| ^~~~~~~~~~~
| lower_bound
Adding #include <algorithm> (which defines std::upper_bound) in include/async_mqtt5/detail/control_packet.hpp fixed the build for me.
The text was updated successfully, but these errors were encountered:
Bok dečki,
I've been using the library with GCC 13.2 but after updating to 14.1 this error appears:
Adding
#include <algorithm>
(which defines std::upper_bound) ininclude/async_mqtt5/detail/control_packet.hpp
fixed the build for me.The text was updated successfully, but these errors were encountered: