The decode::no_more_data problem...

The body of the message is empty, why not just return an empty string?

I can work around this by doing a proton::value body = message.body(); if
(!body.empty())

But seems a bit hardcore to throw an exception, just saying.
I do understand that string is an easy example, and perhaps the conversion
to an integer is less obvious.

Toby



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/qpid-proton-0-12-2-connection-engine-and-ssl-tp7647090p7647931.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to