
19 Nov
2009
19 Nov
'09
8:46 p.m.
In my test ReturnType was double. This would seem to silently compile and return garbage on these inputs. In practice on vs2008( VC9 ) these return values were 0 (with optimizations on) even though the return resolves to double();. I'm guessing other platforms won't be so lucky.
That is well defined to return built-in types zero-initialized.
Thanks Rob! I was just looking for a reference for this. Regards, Barend