From dev-return-8310-apmail-activemq-dev-archive=activemq.apache.org@activemq.apache.org Wed Oct 03 22:11:00 2007 Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 96972 invoked from network); 3 Oct 2007 22:10:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2007 22:10:59 -0000 Received: (qmail 49217 invoked by uid 500); 3 Oct 2007 22:10:48 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 49189 invoked by uid 500); 3 Oct 2007 22:10:48 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 49180 invoked by uid 99); 3 Oct 2007 22:10:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2007 15:10:48 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2007 22:10:50 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0B4DD714168 for ; Wed, 3 Oct 2007 15:10:28 -0700 (PDT) Message-ID: <17242798.1191449428042.JavaMail.jira@brutus> Date: Wed, 3 Oct 2007 15:10:28 -0700 (PDT) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Subject: [jira] Assigned: (AMQCPP-143) declara BytesMessage::readXXX() methods as 'const' In-Reply-To: <10724675.1190374883801.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQCPP-143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish reassigned AMQCPP-143: ----------------------------------- Assignee: Timothy Bish (was: Nathan Mittler) > declara BytesMessage::readXXX() methods as 'const' > --------------------------------------------------- > > Key: AMQCPP-143 > URL: https://issues.apache.org/activemq/browse/AMQCPP-143 > Project: ActiveMQ C++ Client > Issue Type: Improvement > Components: CMS Impl > Environment: language specific, all the platforms > Reporter: Matvey Aizenshtat > Assignee: Timothy Bish > Priority: Minor > Fix For: 2.1.1 > > > BytesMessage readXXX() methods (readBytes() etc) aren't 'const' since the internal stream state is changed. > 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. > See also: > http://www.nabble.com/BytesMessage-methods-tf3833767s2354.html#a10853672 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.