Overview
Explore advanced C++ serialization techniques in this CppCon 2022 conference talk. Dive into a minimally intrusive approach for adding serialization to class sets, traversing hierarchical and non-hierarchical data, and persisting in binary format with dynamic reconstruction. Learn about Template Argument Deduction for data type deduction, protection against recursive reentrancy, and reflection-like techniques for dynamic object creation. Discover how to implement this platform-agnostic method using C++14 SFINAE/std::enable_if, with insights on optimizations and potential C++20 concept adaptations. Understand the versatility of this serialization technique for disk file persistence, IPC shared memory, and network streams for live remote data sharing in HPC or gaming applications.
Syllabus
Introduction
Agenda
Serialization Style
Saving Objects
Types
Archive
Serializable
Multiple Layers
Base Type
Serializable Base
Serializable Inheritance
Data Sources
Socket Source
Key and checksum
Stream optimization
Multilayer inheritance
Shared pointers
Multilayer example
Stream Ice example
Taught by
CppCon