public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11729] New: no operator!= for const_reverse_iterator
@ 2003-07-30 17:56 relf at os2 dot ru
  2004-03-22  6:57 ` [Bug libstdc++/11729] [DR280] " kenta at mit dot edu
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: relf at os2 dot ru @ 2003-07-30 17:56 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11729

           Summary: no operator!= for const_reverse_iterator
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: relf at os2 dot ru
                CC: gcc-bugs at gcc dot gnu dot org

operator!= is missed for const_reverse_iterator (I've tried `map' and `multimap'
classes). Compiling the code below produces an error:

bug_ne.cpp: In function `int main()':
bug_ne.cpp:12: error: no match for 'operator!=' in 'ri != std::map<_Key, _Tp,
   _Compare, _Alloc>::rend() [with _Key = int, _Tp = int, _Compare =
   std::less<int>, _Alloc = std::allocator<std::pair<const int, int> >]()'


///// cut_here //////
#include <map>
#include <iostream>
 
using namespace std;
 
typedef map<int,int> M;
 
int main() {
    M m;
    m[0] = 0;
 
    for(M::const_reverse_iterator ri=m.rbegin();ri!=m.rend();++ri)
        cout << ri->first << " : " << ri->second << endl;
 
    return 0;
}
///// cut_here //////


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-03-27 17:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-11729-1335@http.gcc.gnu.org/bugzilla/>
2005-10-04 15:44 ` [Bug libstdc++/11729] [DR280] no operator!= for const_reverse_iterator pcarlini at suse dot de
2005-10-05 15:49 ` cvs-commit at gcc dot gnu dot org
2005-10-05 15:50 ` pcarlini at suse dot de
2005-10-08 14:57 ` pcarlini at suse dot de
2006-03-27 17:28 ` pcarlini at suse dot de
2003-07-30 17:56 [Bug c++/11729] New: " relf at os2 dot ru
2004-03-22  6:57 ` [Bug libstdc++/11729] [DR280] " kenta at mit dot edu
2004-03-22  8:08 ` kenta at mit dot edu
2005-01-21 11:34 ` pcarlini at suse dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).