Practical Type Erasure
summary
Shows a real production configuration system built with boost any and type erasure that actually runs on GCC 4.8/4.9 and cling 3.4 but not tested on Windows. Explains the implementation: erased-type storage via a polymorphic internal base, handlers per-type, search-order for multiple backends, JSON and database backends, and a memory and environment backend. Surprising specifics: injected types must be copyable, the API must predefine allowed operations, missing-vs-empty cannot be distinguished, and the system works in deployed code.
AI-written summary · about
chapters (17)
- 0:00Intro
- 0:24Outline
- 2:41Type Erasure: Implementation
- 6:04Boost Any
- 9:02Practical Type Erasure
- 16:28Configuration Framework
- 21:53Architecture
- 23:07Client Facing Front End
- 27:03Back End Base Class
- 36:01Glue Getter Predicate
- 43:50Glue Setter
- 44:59Glue Handlers
- 47:19Back End Simple Handler
- 49:07Backend Env Handler
- 55:03Back End JSON Handler
- 57:27Back End Real Life
- 59:44Additional Applications
related talks
01h 03mType Erasure - The Implementation Details
01h 02mBreaking Dependencies: Type Erasure - A Design Analysis
01h 03mBreaking Dependencies: type erasure - a design analysis
01h 03mWriting sustainable software. The how and the what!
01h 01mBreaking Dependencies - C++ Type Erasure - The Implementation Details
01h 01mEmbracing PODs Safely Until They Die
01h 10mstd::function: a deep dive behind the curtain
25mType System Tips for the Real World
