[Bug libstdc++/11619] Improper warning when calling string::begin() on const string

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Mon Jul 21 19:25:00 GMT 2003


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

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


bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


------- Additional Comments From bangerth at dealii dot org  2003-07-21 19:25 -------
That's not a problem in gcc, but in your code. You need to write
    string::const_iterator it = foo.begin();

W.



More information about the Gcc-bugs mailing list