libstdc++/5583: std::set::iterator is readonly

pme@gcc.gnu.org pme@gcc.gnu.org
Mon Mar 11 14:12:00 GMT 2002


Synopsis: std::set::iterator is readonly

State-Changed-From-To: feedback->closed
State-Changed-By: pme
State-Changed-When: Mon Mar 11 14:12:28 2002
State-Changed-Why:
    LWG Defect Report #103 has resulted in a change to the C++
    Standard:  std::set::iterator is /required/ to be read-only.
    So, this is now definitely not a bug.  :-)
    
    Your example of directed edges doesn't really work:  you
    didn't specify how "edge_t" is supposed to be ordered, but
    assuming that you define an operator< which examines the
    'weight' member, then you /still/ can't change the weight,
    because that would be changing the ordering!  It's right
    back to the original problem...
    

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5583



More information about the Gcc-bugs mailing list