C
charlie
Hi,
I found an article on informit.com that talks about C++ casts
http://www.informit.com/guides/content.asp?g=cplusplus&seqNum=285&rl=1
The strange thing is the author says the following code will *not*
compile:
double d=15.95;
int n= static_cast<int> (d);
and then he goes on to launch an attack against C++ casts. I can't see
any reason why it shouldn't work and I tried with the MS and INTEL
compilers and it compiles with nary a problem.
Does anyone know what he's trying to say???
cheers,
/Charles
I found an article on informit.com that talks about C++ casts
http://www.informit.com/guides/content.asp?g=cplusplus&seqNum=285&rl=1
The strange thing is the author says the following code will *not*
compile:
double d=15.95;
int n= static_cast<int> (d);
and then he goes on to launch an attack against C++ casts. I can't see
any reason why it shouldn't work and I tried with the MS and INTEL
compilers and it compiles with nary a problem.
Does anyone know what he's trying to say???
cheers,
/Charles