cereal Questions
3
Solved
*I know there are lots of questions about this, but they simply don't help much when talking about CMake, hence my decision of making the question *
So I was working on CLion which uses CMake in o...
3
Solved
Let's say I have a class in C++, like the following:
struct Point {
int x, y, z;
};
I want to use Cereal to serialize that struct to JSON. So I added a serialize function like this:
struct Poi...
Accelerant asked 15/11, 2015 at 22:54
3
I want to get a templatized way of finding if a type is a shared_ptr and based on that I want to have a new specialization of a function.
Example main function is,
template <class T> inline...
Gymnastic asked 25/1, 2017 at 13:41
2
Solved
UPDATED: I managed to get it to work after I googled around and read the doxygen comments in code. Problem was that I missed the cast before using resize() method and also not using std::ios::binar...
Parotid asked 5/4, 2014 at 17:26
2
Solved
I have done some performance comparison between several serialization protocols, including FlatBuffers, Cap'n Proto, Boost serialization and cereal. All the tests are written in C++.
I know that F...
Frymire asked 23/1, 2017 at 8:21
1
Solved
I have a templated base class:
template<typename T>
class A {
public:
T a;
template<class Archive>
void serialize(Archive & ar) {
ar(a);
}
};
and a templated class that de...
1
Solved
I have four classes (A,B,C and D) following the classic diamond pattern and a Container class containing a unique_ptr<A>. I want to serialize these classes using the cereal serialization libr...
Shellfish asked 13/2, 2016 at 1:40
1
Solved
Edit: The question title was based on a deep missunderstanding of the compiler error I got. I was (sillyly) assuming the error was, that I tried to deserialize to an object I declared inside of the...
Flita asked 26/10, 2015 at 11:58
1
Solved
I am using Cereal C++ v1.1.1 and similar to the example given in the documentation I am trying the following:
#include <sstream>
#include <iostream>
#include <cereal/archives/json.h...
1
Solved
Can/How do you serialize an array using the cereal library.
I.e.
void save(Archive & ar, const unsigned int version) const
{
unsigned int l = g1_size_bin(g,POINT_COMPRESS);
uint8_t data[l]...
1
Solved
The project I'm working on is a C++ application that manages a large number of custom hardware devices. The app has a socket/port interface for the client (like a GUI). Each device type has its own...
Elmoelmore asked 21/3, 2014 at 21:26
1
© 2022 - 2024 — McMap. All rights reserved.