On Apr 27, 5:44 pm, Erik Wikström <Erik-wikst...@[EMAIL PROTECTED]
> wrote:
> Division by zero does not throw an exception (in standard C++). MS have
> some private extensions which can throw a structured exception in this
> case but those are not (as far as I know) C++ exceptions and can not be
> caught with catch().
Just to be pedantic, division by zero is U.B. according to the
Standard, and U.B. can certainly include throwing an exception; in
that sense, the way MSVC throws an exception of some unspecified type
is perfectly Standard-compliant.
On a side note, depending on compilation flags (/EH..), Win32
"structured exceptions" can actually be caught by catch(...) in MSVC.
--
[ See http://www.gotw.ca/resources/clcm.htm
for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


|