cereal icon indicating copy to clipboard operation
cereal copied to clipboard

A C++11 library for serialization

Results 177 cereal issues
Sort by recently updated
recently updated
newest added

See [C++ Core Guidelines C.44](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#c44-prefer-default-constructors-to-be-simple-and-non-throwing) As opposed to the Binary archive, for the PortableBinary, JSON and XML archives, the constructor can throw if the stream is not opened or is...

enhancement

When boost variant is created using boost::make_variant_over, the template parameter list is not the list of variant types. The list has to be extracted from variant::types fixes#490

bug

I had some problems while including cereal in my project using `FetchContent`, so I made some small modifications to the `CMakeLists.txt`: - renamed some options using the `CEREAL_` prefix to...

When compiling with clang this results in emitting absolute path into debug info, especially .debug_str section has ~(unnamed class at /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libcereal/1.3.2+gitAUTOINC+ebef1e9298-r0/git/unittests/doctest.h:6428:5) (unnamed class at /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libcereal/1.3.2+gitAUTOINC+ebef1e9298-r0/git/unittests/doctest.h:6428:5) Therefore use a name for...

Is this possible to do? I cannot find any documentation on it, nor an example. My class is very simple: ``` template struct Prior { public: bool is_set = false;...

Issue: Configuring cereal with the -DTHREAD_SAFE=ON option will not lead to any change in the installation. I would like to have a system install defaulting to thread safe code, but...

Using the -DTHREAD_SAFE=ON will not perform any change on the installation. I would assume that this switch should change the defaults as defined in the cmake targets.

Code built with g++ with link time optimization (LTO) fails with a "Trying to save an unregistered polymorphic type" exception. The same code works fine without LTO. This is on...

This is my class, which I wrote - also referencing the quick-start section of the docs of cereal ``` Scene.h namespace Sentinel { struct Scene { public: Scene(); Scene(const STL::string&...

The following code compiles when it really shouldn't ```cpp int returnsRValue() { return 0; } void bad(cereal::BinaryInputArchive& archive) { archive(returnsRValue()); archive(7); } ``` Since `cereal::BinaryInputArchive` needs to write to things...