DCMTK
Version 3.6.6
OFFIS DICOM Toolkit
|
DCMTK cast macros that map to C++ casts if available. More...
DCMTK cast macros that map to C++ casts if available.
DCMTK defines its own C++ cast macros that are used throughout DCMTK instead of the original C++ cast operators. If the C++ cast operators are available on the platform the macros directly map to these. Otherwise they map to old C-style casts.
In this context, DCMTK has defined a macro OFdynamic_cast that maps to C++' dynamic_cast. However, so far dynamic casts are not used within DCMTK since they rely on C++' RTTI feature which is deliberately avoided in DCMTK at this moment. Thus it is highly recommended to not use dynamic casts in DCMTK at all.