We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This overload:
const_message_ptr try_consume_message_until(const std::chrono::time_point<Clock,Duration>&)
Gives error message:
async_client.h:696:3: error: no matching function for call to ‘mqtt::thread_queue<std::shared_ptr<const mqtt::message> >::try_get_until(mqtt::const_message_ptr&, const std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long int, std::ratio<1, 1000000000> > >&)’ que_->try_get_until(msg, absTime);
Simply adding an & before msg in the try_get_until call appeared to fix it.
&
msg
try_get_until
This was discovered in version 1.1, but from what I can tell, the problem still exists in master.
The text was updated successfully, but these errors were encountered:
Minimal example to reproduce:
#include <mqtt/async_client.h> int main() { mqtt::async_client client({}, {}); client.try_consume_message_until(std::chrono::steady_clock::now()); }
Sorry, something went wrong.
Thanks for reporting this! Sorry took a few years to get to a new release.
#343 async_client::try_consume_message_until taking single parameter …
cd6dd12
…fails to compile
No branches or pull requests
This overload:
Gives error message:
Simply adding an
&
beforemsg
in thetry_get_until
call appeared to fix it.This was discovered in version 1.1, but from what I can tell, the problem still exists in master.
The text was updated successfully, but these errors were encountered: