Hello,

I am using the latest version of proton cpp 0.27.0.

I have a suggestion for the signature of the messaging handler's methods:
In my opinion, giving the parameters as references is error prone. Because
it gives the user the illusion that he can keep a reference on the proton
object in his handler and that proton is managing the life cycle of this
object which is not the case. In other words, proton is giving a reference
to a temporary variable.

I understand that you would like to optimise the copy but now with C++ 11
we can move the objects.

What do you think?

Best regards,
Rabih

Reply via email to