On 9/27/2015 12:40 PM, Udo Steinbach wrote:
> After reading
http://www.boost.org/community/exception_safety.html and
> experimenting with throwing at every point that can throw ...
> How do you test your code for exception safety?
You can use memory leak detectors to detect memory leaks. That's one aspect.
You can generate hashes of object state to detect changed object state.
That's another aspect.
These comments are just common sense. I'm not aware of special
techniques for generating exceptions within operations used by the code.
It could be very costly to create mockups of lower level operations.
> Is there any module for doing that in the world?
Don't know, sorry.
Cheers & hth.,
- Alf