Loading…
CppNorth2022 has ended
CppNorth, The Canadian C++ Conference, July 17-20, 2022,
The Omni King Edward Hotel, Toronto, Ontario M5C 1 E9
Back To Schedule
Monday, July 18 • 15:15 - 16:15
Binary Object Serialization with Structure Traversal & Reconstruction

Log in to save this to your schedule, view media, leave feedback and see who's attending!

I will present a minimally intrusive technique for extending a class to do data serialization in a binary format. 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 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 using C++14 compliant std::enable_if<>. We will also explorer optimizations for C++17 and what it takes to convert this technique to use C++20 concepts.

This trying is an exploration of multiple ideas that you might be able to apply to your code. It is not a talk trying to sell you on the use of this library. Serialization is just one application.

Speakers
avatar for Chris Ryan

Chris Ryan

[](){SpeakerLiaison();}
Chris Ryan was classically trained in both 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... Read More →


Monday July 18, 2022 15:15 - 16:15 EDT
C - Kensington