← Back to team overview

kicad-developers team mailing list archive

Re: Casting away constness

 

> 
> I doubt the current code will ever cause bad behaviour.

Because its inline.  And technically it is not modifying the object.

What would be a stupid function is one that changes the linked list pointer and declares
itself constant.

But a function that is read-only like this should always be allowed to be const.




Follow ups

References