Slides: [ Ссылка ]
CppNow Website: [ Ссылка ]
CppNow Twitter: @CppNow
---
Binary Object Serialization - Chris Ryan - CppNow 2022
This talk will describe a minimally intrusive technique to add serialization to a set of classes, traversing the hierarchical data, persisting in a binary format and dynamic reconstruction.
When storing, it can deduce the data types using Template Argument Deduction (TAD).
When loading, it uses a homebrew reflection technique for dynamic object creation. Reflection as a language feature will be unavailable until at least C++26. This serialization technique can dynamically recreate a persisted complex data structure/structure network. This is a platform agnostic technique. Not everybody is yet able to migrate to C++20, so this is using a C++14 compliant SFINAE/std::enable_if<> mechanism. We will also explore optimizations and what it takes to convert this technique to use C++20 concepts.
Category: Metaprogramming and Tooling/Utilities
---
Chris Ryan
Chris Ryan was classically trained in software and hardware engineering. He is well experienced in Modern C++ on extremely large/complex problem spaces and Classic ‘C’ on Embedded/Firmware devices (large & small). Chris has no interest in C#/.Net, Java, js or any web-ish tech.
__
Videos Filmed & Edited By Bash Films [ Ссылка ]
YouTube Channel Managed By Digital Medium Ltd: [ Ссылка ]
#Boost #Cpp #CppNow
Binary Object Serialization - Chris Ryan - CppNow 2022
Теги
Binary Object SerializationChris RyanCppNow 2022technique to add serialization to a set of classesclassesbinary formatdynamic reconstructiondynamic object creationTemplate Argument DeductionTADcomplex data structure/structure networkC++20C++14 compliant SFINAE/std::enable_if<> mechanismoptimizationsMetaprogrammingbinary objectserializationreflection techniqueSFINAE/std::enable_if<>serialization techniquecppconboostC++20 conceptsC++cpptutorial