Can't invoke a non-const method on objects iterated from a std::set
Hugues Joly
hjoly2003@yahoo.ca
Sat Oct 30 15:20:00 GMT 2004
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.
My gcc is of version 3.3.2 on Mandrake 10.0
Thanks in advance.
__________________________________________________________
Lèche-vitrine ou lèche-écran ?
magasinage.yahoo.ca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testset.cpp
Type: text/x-c++
Size: 774 bytes
Desc: testset.cpp
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20041030/77188dfa/attachment.bin>
More information about the Libstdc++
mailing list