Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 86400 invoked from network); 15 May 2008 20:51:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 May 2008 20:51:16 -0000 Received: (qmail 65778 invoked by uid 500); 15 May 2008 20:51:18 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 65751 invoked by uid 500); 15 May 2008 20:51:18 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 65724 invoked by uid 99); 15 May 2008 20:51:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 May 2008 13:51:18 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 May 2008 20:50:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8674B234C114 for ; Thu, 15 May 2008 13:50:55 -0700 (PDT) Message-ID: <1886366749.1210884655546.JavaMail.jira@brutus> Date: Thu, 15 May 2008 13:50:55 -0700 (PDT) From: "Martin Sebor (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Updated: (STDCXX-78) std::copy() doesn't detect overlapping ranges 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-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Sebor updated STDCXX-78: ------------------------------- Severity: Usability Affects Version/s: 4.1.3 4.1.4 4.2.0 4.2.1 Fix Version/s: 4.3 Remaining Estimate: 4h Original Estimate: 4h Let's see if this is worth doing in 4.3. > std::copy() doesn't detect overlapping ranges > --------------------------------------------- > > Key: STDCXX-78 > URL: https://issues.apache.org/jira/browse/STDCXX-78 > Project: C++ Standard Library > Issue Type: Improvement > Components: 25. Algorithms > Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2.0, 4.2.1 > Environment: all > Reporter: Martin Sebor > Priority: Minor > Fix For: 4.3 > > Original Estimate: 4h > Remaining Estimate: 4h > > Quoting from the response to the following post: > http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200511.mbox/%3c4D6A8407B7AC6F4D95B0E55C4E7C4C6202EEFD7E@exmsk.moscow.vdiweb.com%3e > -------- Original Message -------- > Subject: Re: questions about the lib.alg.copy test > Date: Wed, 30 Nov 2005 17:33:10 -0700 > From: Martin Sebor > To: stdcxx-dev@incubator.apache.org > References: <4D6A8407B7AC6F4D95B0E55C4E7C4C6202EEFD7E@exmsk.moscow.vdiweb.com> > Anton Pevtsov wrote: > [...] > > > > 2. The copy algorithm can work in case when the destination range > > overlaps the source range (of course, first position of the source range > > should not be contained in the destination range). Current version > > doesn't contain special test for this case, but I prefer to have such > > test. What do you think about it? > The requirement in 25.2.1, p3 is that "result shall not be in the > range [first, last)." The algorithm doesn't detect violations of > this requirement but it probably should in debug mode. This would > be a useful enhancement in general. Let me file an enhancement for > it. > Martin -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.