I looked at the coding guidelines for C++ on the wiki but I didn’t see this topic addressed.
I know there is a preference not to use C-style explicit casting such as (double) int_variable
. Is it okay to use C-style functional casting such as double (int_variable)
?
Or, is the preference for the very long form C++ style static_cast<double> (int_variable)
?