cereal
cereal copied to clipboard
A C++11 library for serialization
The following code compiles fine in VS2017, but fails in clang 6: ```cpp template class RectT { public: T x, y, w, h; } typedef RectT Rectf; template void serialize(Archive&...
Hello, This feature allows one dimensional array to be represented as string in json. example output: 1) g++ --std=c++17 m.cpp ``` { "value0": { "name": { "value0": 97, "value1": 100,...
Hello, I made some changes to how variants are represented in json for my use case and putting it here in case you would also find it useful. example output:...
``` $ ./work/.build/unittests/test_portable_binary_archive [doctest] doctest version is "2.3.5" [doctest] run with "--help" for options =============================================================================== /usr/ports/devel/cereal/work/cereal-1.3.0-10-g64f50dbd/unittests/portable_binary_archive.cpp:38: TEST SUITE: portable_binary_archive TEST CASE: util /usr/ports/devel/cereal/work/cereal-1.3.0-10-g64f50dbd/unittests/portable_binary_archive.cpp:38: FATAL ERROR: test case CRASHED: SIGSEGV -...
Hello, I haven't worked in C++ for a while and I am struggling to get polymorphic serialisation working for a small project. I am using Catch as a testing framework...
Hi, while cereal builds nicely under Debian on amd64 architecture the attempt to build it on arm64 ended up in a [failure](https://bugs.debian.org/976585). The hopefully relevant part of the bug log...
Hi, This is more a question, than an issue. In my application JSON is parsed, validated against JSON schema and then mapped to C++ object. I use rapidjson for parsing,...
Like ```BUILD_TESTS```, there should be a variable ```BUILD_SANDBOX```. This is a header-only library and packages should build without any compilation.
Context and motivation ---------------------- There is this very common and recurring pattern when using Cereal to load an object ``` {.cpp} Foo foo; { // ... iar(foo); } ``` which...
I want to serialize to memory (to send over the network), I came up with this solution, which is not ideal. ``` namespace io = boost::iostreams; data.resize(BUFF_SZ); // std::vector io::stream_buffer...