What is noexcept useful for?
I saw that C++ 11 added the noexcept keyword. But I don't really understand why is it useful. If the function throws when it's not supposed to throw - why would I want the program to crash? So when should I use it? Also, how will it work along with compiling with /Eha and using _set_se_translator ? This means that any line of code can throw c++ exception - because it might throw a SEH exception (Because of accessing protected memory) and it will be translated to c++ exception. What will happen then? Dietmar Kühl The primary use of noexcept is for generic algorithms, e.g., when resizing a std: