--- Comment #2 from korikov at hotmail dot com 2010-04-01 01:09 ---
(In reply to comment #1)
> 100.0 is of a type double in C++, not float. Try 100.0f.
>
yes 100.0f works as well as (float)100.0 but the point is when the compiler
does automatic conversion from float to double
If internally all floats are treated as double, then if I throw exception in
the below code as double(which is 100.0) and catch as float why the program
terminates, rather the catch of float should also be elevated to double type in
the absence of explicit catch of double.
try{