Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 23571 invoked from network); 21 Sep 2007 11:45:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Sep 2007 11:45:41 -0000 Received: (qmail 88775 invoked by uid 500); 21 Sep 2007 11:45:31 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 88746 invoked by uid 500); 21 Sep 2007 11:45:31 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 88737 invoked by uid 99); 21 Sep 2007 11:45:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Sep 2007 04:45:31 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Sep 2007 11:45:30 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IYgwX-0000AZ-Ld for users@activemq.apache.org; Fri, 21 Sep 2007 04:45:09 -0700 Message-ID: <12815039.post@talk.nabble.com> Date: Fri, 21 Sep 2007 04:45:09 -0700 (PDT) From: Motl To: users@activemq.apache.org Subject: Re: BytesMessage constness In-Reply-To: <8a6feb940709210313l21848e68ma988567e0898328c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: motl@orcsoftware.com References: <12813490.post@talk.nabble.com> <8a6feb940709210313l21848e68ma988567e0898328c@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Done. https://issues.apache.org/activemq/browse/AMQCPP-143 nmittler wrote: > > I agree, this definitely would be a pain since the onMessage method gives > you a const Message. Could you capture this issue in JIRA? > http://issues.apache.org/activemq/browse/AMQCPP > > Thanks, > Nate > > > On 9/21/07, Motl wrote: >> >> >> Hi, >> I once asked you why readBytes() and other read methods aren't const: >> >> http://www.nabble.com/BytesMessage-methods-tf3833767s2354.html#a10853672 >> >> 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(), that's not good. >> >> -- >> View this message in context: >> http://www.nabble.com/BytesMessage-constness-tf4492790s2354.html#a12813490 >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/BytesMessage-constness-tf4492790s2354.html#a12815039 Sent from the ActiveMQ - User mailing list archive at Nabble.com.