On Fri, Aug 05, 2022 at 05:08:14PM +0200, Claudio Jeker wrote: > We added the inline functions for these typecasts to add a minimal level > of error protection. Now where do we hit const problems? I have not seen > such issues and I wonder if those just come from overzealous use of const > arguments to functions.
const problems quickly appear if we constify function arguments, which does not strike me as overzealous when it documents the functions behaviour, helps spotting side effects should for example future changes suddenly make it write to pointer arguments, etc.
