> Now back to my problem. The original code has double instead of int (I
> just tried both types to be sure and forgot to change back) and on
MSVC
> std::swap() of uninitialised doubles triggers a floating point
> exception (if enabled) as MSVC uses the FPU.
> 
> I was really surprised that the code crashes on Windows as it runs
fine
> under valgrind on Linux.

This is a long-established quirk of Microsoft's compilers. They assume,
rather more deeply than most people, that floating point traps will be 
turned off. 

-- 
John Dallman
Parasolid Porting Engineer

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to