“Practical C++17”
summary
Porting a 25k-line header-only project, ChaiScript, to C++17 yields concrete wins and traps: class template deduction guides collapse dozens of overloads and extend support to every method signature with no LOC increase; GCC 7.2 shows ~1–2% runtime gains from noexcept optimizations and custom transparent comparators; emplace_back returning a reference gives tiny speedups; structured bindings risk RVO loss and moves; beware string_view dangling pointers when storing views of temporary strings.
AI-written summary · about
chapters (12)
- 0:00Introduction and context
- 5:06Feature overview and polling
- 19:17Noexcept and type systems
- 20:59If init expressions
- 25:21Nested namespaces
- 28:00Class template type deduction
- 34:19Structured bindings
- 38:56Fold expressions
- 41:24In-place back insertion
- 42:11String view mechanics
- 49:59If constexpr in practice
- 54:08Deduction guides and wrap-up
