You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Farid Zaripov (JIRA)" <ji...@apache.org> on 2007/10/23 19:51:50 UTC
[jira] Resolved: (STDCXX-611) vector container does not work with
types that implement unary operator&
[ https://issues.apache.org/jira/browse/STDCXX-611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Farid Zaripov resolved STDCXX-611.
----------------------------------
Resolution: Fixed
Fixed thus: http://svn.apache.org/viewvc?rev=587572&view=rev
> vector container does not work with types that implement unary operator&
> ------------------------------------------------------------------------
>
> Key: STDCXX-611
> URL: https://issues.apache.org/jira/browse/STDCXX-611
> Project: C++ Standard Library
> Issue Type: Bug
> Components: 23. Containers
> Affects Versions: 4.2
> Environment: All
> Reporter: Travis Vitek
> Assignee: Farid Zaripov
> Fix For: 4.2.1
>
>
> This could result in failure to compile or unexpected runtime behavior. Discussion on this issue can be found here http://tinyurl.com/2t7vjp
> #include <vector> // for vector
> struct S
> {
> void operator& () const {};
> };
> int main ()
> {
> const S s [3];
> // this is just a compile test, it is not intended to run
> std::vector<S> v;
> v.assign (1, s [0]);
> v.assign (s, s+3);
> v.at (0);
> v.back ();
> v.begin ();
> v.capacity ();
> v.empty ();
> v.end ();
> v.front ();
> v.insert (v.begin (), s [0]);
> v.insert (v.begin (), s, s+3);
> v.insert (v.begin (), 2, s [0]);
> v.erase (v.begin ());
> v.erase (v.begin (), v.end ());
> v.max_size ();
> v.pop_back ();
> v.push_back (s[0]);
> v.rbegin ();
> v.rend ();
> v.reserve (10);
> v.resize (10);
> v.size ();
> std::vector<S>().swap (v);
> return 0;
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.