incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Closed: (STDCXX-210) std::vector<bool>::insert() broken
Date Wed, 30 May 2007 00:20:15 GMT

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

Martin Sebor closed STDCXX-210.
-------------------------------

    Resolution: Cannot Reproduce

Cannot reproduce with the latest trunk.

> std::vector<bool>::insert() broken
> ----------------------------------
>
>                 Key: STDCXX-210
>                 URL: https://issues.apache.org/jira/browse/STDCXX-210
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 23. Containers
>    Affects Versions: 4.1.3, 4.1.2
>         Environment: all
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>             Fix For: 4.2
>
>
> Moved from the Rogue Wave bug tracking database:
> #include <cassert>
> #include <vector>
> int main ()
> {
>     const bool a[] = { false, false, true, true };
>     std::vector<bool> v (a, a + 3);
>     const std::vector<bool>::iterator it = v.end () - 1;
>     v.insert (it, true);
>     const std::vector<bool> res (a, a + 4);
>     assert (v == res);
> }
> Compiling it with EDG eccp 3.4 on SunOS 5.7 against libstd 4.0 and running yields:
> $ ./t
> t.cpp:16: Assertion 'v == res' failed.
> Abort (core dumped)

-- 
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