Explore a type-safe configuration library in this CppNow conference talk. Discover how to create type-level tags for data storage in configuration objects, shifting bad_any_cast checks from runtime to compile time. Learn about the library's features, the Boost.TypeIndex library, and metaprogramming techniques to simplify enable_if usage. Gain insights into implementing a configuration library that avoids "stringly-typed" approaches and boost::any erasure, resulting in cleaner abstractions and improved type safety. Dive into practical examples and best practices for creating robust, type-safe configuration systems in C++.
Overview
Syllabus
Michał Dominiak: Type-safe configuration library
Taught by
CppNow