[c++0x] cannot return a constant

Roman Kononov roman@binarylife.net
Tue Nov 30 21:19:00 GMT 2010


2010-11-30 13:03 CST, James Dennett <james.dennett@gmail.com> said:
>
>If you want to be able to change an object during its lifetime, don't
>make it const.

I exactly want to be unable to change an object during its lifetime
except when it is moved-and-destroyed.

Thanks



More information about the Gcc mailing list