From: K. F. <kfr...@gm...> - 2013-02-09 04:27:59
|
Hi Greg! On Fri, Feb 8, 2013 at 10:23 PM, Greg Chicares <gch...@sb...> wrote: > On 2013-02-09 01:00Z, K. Frank wrote: > [...] > ... >>> My question is: >>> 1. is there any way to change static cont variable value? > ... > C++2003, 7.1.5.1/4: "... any attempt to modify a const object ... results > in undefined behavior." > >> I don't believe that the standard requires static const to be forced >> to be read-only > > That's allowed, though not required (some architectures don't offer > memory protection). Thanks Greg. It's nice to have the confirmation. K. Frank |