stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (STDCXX-629) std::string::assign (reverse_iterator, reverse_iterator) assigning self incorrect
Date Mon, 17 Mar 2008 14:33:25 GMT

     [ https://issues.apache.org/jira/browse/STDCXX-629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Farid Zaripov updated STDCXX-629:
---------------------------------

    Fix Version/s:     (was: 4.2.1)
                   4.3

The STDCXX-170 issue is reverted and deferred to 4.3 release.
Deferring this issue too.


> std::string::assign (reverse_iterator, reverse_iterator) assigning self incorrect
> ---------------------------------------------------------------------------------
>
>                 Key: STDCXX-629
>                 URL: https://issues.apache.org/jira/browse/STDCXX-629
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 21. Strings
>    Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2.0
>         Environment: All
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>            Priority: Minor
>             Fix For: 4.3
>
>
> The 21.string.assign.cpp test has been failing a number of assertions for self-referential
test cases that exercise the ability to assign a substring of a string into itself using the
assign(InputIterator, InputIterator) member template specialization for InputIterator being
an actual reverse_iterator. The program below reproduces the problem in a small isolated test
case.
> #include <cassert>
> #include <string>
> int main ()
> {
>     std::string s ("abc");
>     s.assign (s.rbegin () + 1, s.rend ());
>     assert ("ba" == s);
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message