3 ms·
> (it is valid to cast away const on a pointer or reference, but not if the object itself was declared const). Isn't it valid to cast to non-const for a const,
by toast0 5y ago
> (it is valid to cast away const on a pointer or reference, but not if the object itself was declared const).
Isn't it valid to cast to non-const for a const, but only invalid to modify the const through the casted pointer?
- deleted 5y ago[deleted]