by Michael Aaron Safyan <michaelsafyan@[EMAIL PROTECTED]
>
Apr 29, 2008 at 12:13 PM
Trups wrote:
> Hi,
>
> bool CControlDrvInstance::IsRebootRequired() const throw()
> In this code what is throw() do? I just have slight knowledge that is
> a exception handler but how does it work.
> If I have this in my code do I need to include "try catch" block? If
> yes why?
>
> Thanks
> TS
>
When "throw()" appears as part of the signature of a function, it
indicates that the function has "no-throw" semantics; in other words,
the function "CControlDrvInstance::IsRebootRequired" is guaranteed not
to throw an exception. If an exception is thrown within the
IsRebootRequired function, a default handler -- like the one invoked
when an exception propagates beyond "main" -- will be invoked and cause
the program to terminate.
--
[ See http://www.gotw.ca/resources/clcm.htm
for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]