[ET Trac] [Einstein Toolkit] #223: Make declaration of CCTK_ARGUMENTS safer
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Wed Nov 9 20:29:42 CST 2011
#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.
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/223#comment:6>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list