[cctbxbb] Idiot C++ question

Phil Evans pre at mrc-lmb.cam.ac.uk
Tue May 15 01:17:53 PDT 2012


Looking at some cctbx C++ code, I note use of syntax like

int i = 1234;
double d = static_cast<double>(i);

How is this different or indeed preferable to

double d = double(i);

or

d = i;

?

Phil


More information about the cctbxbb mailing list