The Core C++ Guidelines for Safer Code
summary
Introduces the Core C++ Guidelines and the Guidelines Support Library (GSL) as a way to reduce common bugs and lifetime errors in C++ by concrete changes such as replacing raw new/delete with std::unique_ptr and the Rule of Zero, and by using GSL types like not_null and span plus bounds-checked APIs. Shows static analyzers and compiler diagnostics that detect guideline violations, walks through code-before/code-after refactorings drawn from the ~600-page guidelines, and evaluates whether those fixes actually prevent failures.
AI-written summary · about
chapters (6)
- 0:00Core C++ Guidelines intro
- 4:24Guidelines for safety
- 12:22Move semantics in C++
- 17:18In-place construction
- 22:23Memory consistency
- 26:13Summary
related talks
49mC++ (Core) Guidelines - Safer C++
54mType-and-resource Safety in Modern C++
51mSecure Programming Practices in C++
57mThe Misra C++:2023 Guidelines
50mSecure development with C++ - Lessons and techniques
48mSecure C++ Programming
01h 01mClosing the Gap between Rust and C++ Using Principles of Static Analysis
01h 08mImplementing the C++ Core Guidelines’ Lifetime Safety Profile in Clang
