[Developers] Const correctness for cGH *

Thomas Radke tradke at aei.mpg.de
Tue Jun 7 07:05:21 CDT 2005


Jonathan Thornburg wrote:
> On Sun, 5 Jun 2005, Erik Schnetter wrote:
> [[...]]
> 
>> We should decide: Either the cGH structure should be const qualified in
>> thorns, or it should not be.  If it is const, then the few thorns that
>> need to modify the cGH structure (Time, CartGrid3D, drivers) can easily
>> cast the const away in the few places where they need to modify things.
> 
> 
> Yes, make it const!

I'd be in favor of it too. But only if you can tell me how to do the 
type cast in C without having gcc generate a warning "cast discards 
qualifiers from pointer target type" for such cases.


-- 
Cheers, Thomas.



More information about the Developers mailing list