This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [c++0x] cannot return a constant
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?