2 ms·
I'm not sure any compiler actually implements any real optimizations based on const. I suppose possibly on static const variables of basic integer types, but th
by stormbrew 13y ago
I'm not sure any compiler actually implements any real optimizations based on const. I suppose possibly on static const variables of basic integer types, but that'd be about all it can do. The existence of the volatile escape hatch, to say nothing of const_cast<>, makes it a pretty useless hint for the compiler.