So a const_cast can cast from 'const double *' to 'double *', but not from 'const double *' to 'float *'. Whereas a reinterpret_cast can cast from 'const double *' to 'const float *', but not from 'const double *' to 'float *'. Etc.
Also, a reinterpret_cast cannot cast to a type that has smaller precision. So you can't cast from a 'void *' to 'char'.
Comments? -bw
casting.patch
Description: Binary data
_______________________________________________ cfe-dev mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
