Replies: 1 comment
-
ConclusionUse |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
async_mqtt/include/async_mqtt/endpoint.hpp
Lines 367 to 377 in 8d3ef84
endpoint::recv
is the most commonly used API. Its parameter ispacket_variant
.The entry types are
async_mqtt/include/async_mqtt/packet/packet_variant.hpp
Lines 184 to 215 in 8d3ef84
It contains all packet types and system_error.
I don't want to two parameters as
system_error
andpacket_variant
(except system_error), because the parameterpacket_variant
is enabled onlysystem_error
is succees. Such parameter's dependency is not elegant.optional
cannot explain the kind of errors.I think that perhaps Boost.Outcome is appropriate choice. Now, I am not familiar to Boost.Outcome so I use variant. But I can replace if it is needed to propose async_mqtt to the Boost.Libraries.
Beta Was this translation helpful? Give feedback.
All reactions