2 ms·
> “Please give me references to two of your strings, and by the way, I might modify them.” Since C++ const is not transitive, one can still modify what the con
by WalterBright 5y ago
> “Please give me references to two of your strings, and by the way, I might modify them.”
Since C++ const is not transitive, one can still modify what the const reference indirectly refers to.
- lkjjfowjflasdf 5y agohttps://digitalmars.com/d/archives/digitalmars/D/Transitive_const_sucks_58111.html https://digitalmars.com/d/archives/digitalmars/D/Transitive_...