As C++11-compliant compilers start to roll out and be adopted, people want to know to best use new C++11 features, such as:
When Should I Really Use noexcept?
- There are many examples of functions that I know will never throw, but for which the compiler cannot determine so on its own. Should I append
noexceptto the function declaration in all such cases? ... For which situations should I be more careful about the use ofnoexcept, and for which situations can I get away with the impliednoexcept(false)?- When can I realistically except to observe a performance improvement after using
noexcept? ... Do modern compilers take advantage ofnoexceptin this way? If not, can I excect some of them to do so in the near future?

Add a Comment
Comments are closed.