#223: Make declaration of CCTK_ARGUMENTS safer --------------------------+------------------------------------------------- Reporter: eschnett | Owner: Type: enhancement | Status: review Priority: minor | Milestone: Component: Cactus | Version: Resolution: | Keywords: --------------------------+-------------------------------------------------
Comment (by eschnett):
Casting away const in C++ is done one a few occasions; const_cast<>() is a good way to do so.
In Cactus, we need to cast away const in thorn CartGrid3D (when setting cctk_delta_space) and in thorn time (when setting cctk_delta_time). Both are inelegant, and should be replaced by a flesh API instead. However, what we currently have works. And since it only involves C, it is safe, as Roland explains.