This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]