Relative Content

Tag Archive for ignitegridgain

How to serialize custom type?

I am trying to access GridGain server from the project that’s written in C++ using GridGain C++ thin client: https://ignite.apache.org/docs/latest/thin-clients/cpp-thin-client
As long as I use basic types (integers, std::string etc.) everything works fine.
However, more complex types (any kind of “struct”-ures) require serialization. Serialization is outlined here: https://ignite.apache.org/docs/latest/cpp-specific/cpp-serialization . That page seems to be giving pieces of the code but not a complete example. If I try to just copy and compile code from that page: