On 08/03/2012 19:38, Steven Schveighoffer wrote: <snip>
Yes, I couldn't really find that. It does specifically say casting away const and then modifying is invalid, but it does not say anything about "if you know the underlying data is mutable". But again, this is the point I was trying to make, we are casting away a const-like attribute and modifying the data.
<snip>
No more than we are already doing with the inout return. Stewart.