p-ranav / alpaca

Serialization library written in C++17 - Pack C++ structs into a compact byte-array without any macros or boilerplate code
MIT License
464 stars 43 forks source link

Serializing unsupported types #15

Open sdmg15 opened 1 year ago

sdmg15 commented 1 year ago

Thanks for this awesome libs.

My question is how can I serialize custom types? My struct is using absl::int128 (abseil) and I want to be able to serialize it. Is there a way to specialize the function that does the serialization for adding unsupported one? Just like nlohmann::json does