[c++0x] cannot return a constant

Gabriel Dos Reis gdr@integrable-solutions.net
Tue Nov 30 21:38:00 GMT 2010


On Tue, Nov 30, 2010 at 3:11 PM, Roman Kononov <roman@binarylife.net> wrote:
> 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.

isn't that a question for C++ forums?



More information about the Gcc mailing list