This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
This is what you should expect according to the standard, and is unfortunatly necessary.Hi, if I define a set of objects and try to invoke a non-const method on each of them while iterating the set, I get a compilation error. The gcc compiler complains that I try to invoke a non-constant method on a const object. You can see that in a sample program as attachment.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |