To help LDC/GDC
Dicebot
m.strashun at gmail.com
Mon Apr 8 06:15:46 PDT 2013
On Monday, 8 April 2013 at 13:13:22 UTC, Dicebot wrote:
> Casting away D const is undefined behavior. It is still not for
> single-threaded C++11 code AFAIK. That may make an important
> difference for optimization opportunities.
Minor fix: It is undefined in C++11 to cast away const from
pointer to data immutable by definition (like string literals),
but that can't be known from function that accepts const argument.
More information about the Digitalmars-d
mailing list