Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 3332 invoked from network); 1 Dec 2005 00:39:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Dec 2005 00:39:54 -0000 Received: (qmail 60707 invoked by uid 500); 1 Dec 2005 00:39:54 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 60660 invoked by uid 500); 1 Dec 2005 00:39:53 -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 60648 invoked by uid 99); 1 Dec 2005 00:39:53 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Nov 2005 16:39:51 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 49CD8CB for ; Thu, 1 Dec 2005 01:39:30 +0100 (CET) Message-ID: <263890012.1133397570300.JavaMail.jira@ajax.apache.org> Date: Thu, 1 Dec 2005 01:39:30 +0100 (CET) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Created: (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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N std::copy() doesn't detect overlapping ranges --------------------------------------------- Key: STDCXX-78 URL: http://issues.apache.org/jira/browse/STDCXX-78 Project: STDCXX Type: Improvement Components: 25. Algorithms Versions: 4.1.2 Environment: all Reporter: Martin Sebor Priority: Minor 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. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira