From stdcxx-dev-return-1235-apmail-incubator-stdcxx-dev-archive=incubator.apache.org@incubator.apache.org Wed Apr 26 23:34:28 2006 Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 89605 invoked from network); 26 Apr 2006 23:34:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Apr 2006 23:34:28 -0000 Received: (qmail 62230 invoked by uid 500); 26 Apr 2006 23:34:27 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 62215 invoked by uid 500); 26 Apr 2006 23:34:27 -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 62203 invoked by uid 99); 26 Apr 2006 23:34:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2006 16:34:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2006 16:34:26 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 245717142C5 for ; Wed, 26 Apr 2006 23:34:04 +0000 (GMT) Message-ID: <84236499.1146094444146.JavaMail.root@brutus> Date: Wed, 26 Apr 2006 23:34:04 +0000 (GMT+00:00) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Updated: (STDCXX-170) std::string::replace (iterator, iterator, InputIterator, InputIterator) inserting self incorrect In-Reply-To: <2090566796.1144227405031.JavaMail.jira@ajax> 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 [ http://issues.apache.org/jira/browse/STDCXX-170?page=all ] Martin Sebor updated STDCXX-170: -------------------------------- Summary: std::string::replace (iterator, iterator, InputIterator, InputIterator) inserting self incorrect (was: string::replace (Iterator i1, Iterator i2, InputIterator j1, InputIterator j2) works incorrectly when j1 and j2 are iterators pointing to the same string) > std::string::replace (iterator, iterator, InputIterator, InputIterator) inserting self incorrect > ------------------------------------------------------------------------------------------------ > > Key: STDCXX-170 > URL: http://issues.apache.org/jira/browse/STDCXX-170 > Project: C++ Standard Library > Type: Bug > Components: 21. Strings > Versions: 4.1.3 > Environment: all > Reporter: Anton Pevtsov > Priority: Minor > > This test fails: > #include > #include > static const char* test = "babc"; > int main (void) > { > std::string s ("abc"); > s.replace (s.begin (), s.begin (), s.begin () + 1, s.begin () + 2); > std::cout << "Expected " << test << " and got " << s << '\n'; > return 0; > } > The output is "Expected babc and got aabc". > See details here: > http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200604.mbox/%3c44337C76.4020909@roguewave.com%3e -- 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