P
Pallav singh
Hi All ,
I am new to C++. I was looking to several levels of exception safety:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Basic exception safety: Partial execution of failed operations can
cause
side effects, but invariants on the state are preserved. Any stored
data will
contain valid values even if data has different values now from before
the exception.
http://en.wikipedia.org/wiki/Exception_handling
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
stable state. An object's state is stable if none of its member or
friend
functions, when called with arguments that
satisfy their
preconditions, result in undefined behavior.
[Note: in particular, this applies to the object's destructor.]
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/1997/N1077.asc
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I am not able to understand them. How can they occur in Code.
Thanks in Advance
Pallav Singh
I am new to C++. I was looking to several levels of exception safety:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Basic exception safety: Partial execution of failed operations can
cause
side effects, but invariants on the state are preserved. Any stored
data will
contain valid values even if data has different values now from before
the exception.
http://en.wikipedia.org/wiki/Exception_handling
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
stable state. An object's state is stable if none of its member or
friend
functions, when called with arguments that
satisfy their
preconditions, result in undefined behavior.
[Note: in particular, this applies to the object's destructor.]
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/1997/N1077.asc
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I am not able to understand them. How can they occur in Code.
Thanks in Advance
Pallav Singh