activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Motl <>
Subject BytesMessage constness
Date Fri, 21 Sep 2007 09:20:57 GMT

I once asked you why readBytes() and other read methods aren't const:

But if only the stream pointer is updated, I suppose we could have another
solution here, i.e.
declare inputStream field as 'mutable':

mutable io::ByteArrayInputStream inputStream;

In that case we could keep read methods const.

I am requesting for that because at the moment such non-const API forces app
level either always deal with non-const objects or make
const_cast<cms::BytesMessage *>(), that's not good.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message