Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 83002 invoked from network); 6 Sep 2007 00:33:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Sep 2007 00:33:54 -0000 Received: (qmail 4129 invoked by uid 500); 6 Sep 2007 00:33:49 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 4112 invoked by uid 500); 6 Sep 2007 00:33:49 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 4101 invoked by uid 99); 6 Sep 2007 00:33:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2007 17:33:49 -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; Thu, 06 Sep 2007 00:33:54 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DE9B2714163 for ; Wed, 5 Sep 2007 17:33:33 -0700 (PDT) Message-ID: <23449313.1189038813907.JavaMail.jira@brutus> Date: Wed, 5 Sep 2007 17:33:33 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Closed: (STDCXX-234) std::distance() declaration incorrect In-Reply-To: <19358537.1151523569910.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Sebor closed STDCXX-234. ------------------------------- Resolution: Fixed Fixed as follows:http://svn.apache.org/viewvc?rev=573113&view=rev Regression test added: http://svn.apache.org/viewvc?rev=573119&view=rev Closed. > std::distance() declaration incorrect > ------------------------------------- > > Key: STDCXX-234 > URL: https://issues.apache.org/jira/browse/STDCXX-234 > Project: C++ Standard Library > Issue Type: Bug > Components: 24. Iterators > Affects Versions: 4.1.2, 4.1.3 > Environment: all > Reporter: Martin Sebor > Assignee: Martin Sebor > Fix For: 4.2 > > > Moved from the Rogue Wave bug tracking database: > ****Created By: sebor @ Jul 01, 2000 02:17:12 PM**** > Subject: Wrong definition for template distance() > Date: Sat, 1 Jul 2000 00:28:16 -0700 > From: Dennis Handly > To: sebor@roguewave.com > CC: dhandly@hpcllmx.cup.hp.com, wanc@cup.hp.com > I just noticed Perennial test Sec24/2/P24003.C is failing. > It seems that prototype for std::distance() is incorrect: > template > inline _TYPENAME iterator_traits<_ForwardIterator>::difference_type > distance (const _ForwardIterator &__first, const _ForwardIterator &__last) > The correct version is 24.3.4: > template > typename iterator_traits::difference_type > distance(InputIterator first, InputIterator last); > Did you change this because of a compiler problem you wrote about?? > > The following is a list of problems I have encountered while porting > > the lib to aCC 3.14.10: > > > > 1) JAGac61365 (aCC 3.14.10 not dropping top-level cv-qualifiers during > > template argument deduction). This causes compilation errors in > > std::distance<>() (many tests fail to compile). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.