Deterministic Garbage Collection
C++ has a bad reputation for leaking memory. While it is true many C++ programs leak memory, this is not due to the lack of support in the language--especially in C++ 11! Many languages depend up on non-deterministic garbage collection to avoid leaks. C++ on the other hand provides the, often misunderstood, RAII pattern to deterministically eliminate leaks at their source. The beautiful thing is that the RAII pattern protects not only against memory leaks, but also against resource leaks as well! In fact most languages are adopting features designed to mimic RAII to help combat their resource leaks. We will begin with an overview of RAII and its use throughout the C++ libraries. Then we will delve into how C++ 11 has provided a complete set of tools to easily avoid all leaks. Come see why in C++ 11 we never say delete, and--more surprisingly--we even never say new!
- DFW C++ User Group 2 Recordings