This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/11619] Improper warning when calling string::begin() on const string
- From: "bgrubi01 at eecs dot tufts dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jul 2003 19:48:32 -0000
- Subject: [Bug libstdc++/11619] Improper warning when calling string::begin() on const string
- References: <20030721191620.11619.bgrubi01@eecs.tufts.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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
------- Additional Comments From bgrubi01 at eecs dot tufts dot edu 2003-07-21 19:48 -------
Subject: Improper warning when calling string::begin() on const string
Sorry for the bother, thanks for the heads up. Blame my CS prof! :)
>>>>> "bangerth" == bangerth at dealii dot org <gcc-bugzilla@gcc.gnu.org> writes:
bangerth> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT*
bangerth> gcc-bugs@gcc.gnu.org.
bangerth> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11619
bangerth> bangerth at dealii dot org changed:
bangerth> What |Removed |Added
bangerth> ----------------------------------------------------------------------------
bangerth> Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
bangerth> ------- Additional Comments From bangerth at dealii dot
bangerth> org 2003-07-21 19:25 ------- That's not a problem in
bangerth> gcc, but in your code. You need to write
bangerth> string::const_iterator it = foo.begin();
bangerth> W.
bangerth> ------- You are receiving this mail because: ------- You
bangerth> reported the bug, or are watching the reporter.