What should i give cereal for correctly serializing std::pair?

Viewed 30

if have this in my c++ class

std::array<std::array<std::pair<std::string, int>, 10>, 9> terms;

and i get this error:

C2338 static_assert failed: 'cereal could not find any input serialization functions for the provided type and archive combination.

i have included these headers but it still doesent work:

#include "cereal/cereal.hpp"
#include <cereal/types/memory.hpp>
#include <cereal/types/concepts/pair_associative_container.hpp>
#include <cereal/types/vector.hpp>
#include <cereal/types/string.hpp>
#include <cereal/types/array.hpp>
#include <cereal/archives/binary.hpp>

what is the solution to this? pls help

0 Answers
Related