mqtt_cpp icon indicating copy to clipboard operation
mqtt_cpp copied to clipboard

Exception safety

Open jonesmz opened this issue 5 years ago • 0 comments

I think that mqtt_cpp should document (with the noexcept keyword) the parts of the mqtt_cpp code that are exception safe.

For example, most of the member functions in property.hpp, and message.hpp and v5_message.hpp can be marked as noexcept.

while it would be a nice goal to make a decision about noexcept on every single function in mqtt_cpp, that's a lot of work.

I think targeting the easy functions is best. Simple ones that don't call other functions.

jonesmz avatar Sep 19 '19 19:09 jonesmz