Skip to content
0:00 / 0:00

#exceptionsafety#c++

Jon Kalb: Exception-Safe Coding in C++ (Part I)

CppNow

39K subscribers • 47 videos on Hallway • Conference channel

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Jon Kalb, C++ instructor

Intermediate. Assumes working knowledge.

18K views14 years ago1 recommendation

Programming languagesSoftware designC++Design patterns

Jon Kalb discusses the challenges of exception safety in C++ and presents guidelines for writing robust, exception-safe code.

Jon's talk from C++Now! 2012 Are you 100% confident that your code is exception-safe? Safe usage of exceptions is a non-trivial problem that the industry has struggled with for the better part of two decades. If you have fear, uncertainty, or doubt about exception safety or just want to see the best practices for using exceptions in C++, this session is for you. We'll start with "What is the problem we are trying to solve?" and discuss alternatives, acknowledge the challenges associated with with exception usage, and cover some well-meaning but misguided attempts at safety. I will then present a set of guidelines that are the basis for safe exception usage and solid implementation techniques, including how to transition from an exception-unsafe legacy code base. When we are finished you will know how to produce code that is easier to write, easier to understand, faster, and 100% robust in the face of exceptions. --- *--* ---

Why it's here

1 person recommends this

What people say. Recommended as a comprehensive guide to understanding and implementing exception safety in C++.

u/upriserin r/programming • Recommends

On “"Do you really write exception safe code?" Most of what I know about exception safety, I learned from this Stack Overflow answer.”

Exception-Safe Coding is a way to write readable source code. Jon Kalb: Exception-Safe Coding in C++ (Part I) Jon Kalb: Exception-Safe Coding in C++ (Part II)