From b5e1da04fb263d9e75c52edd393bc6c57b9b7eef Mon Sep 17 00:00:00 2001 From: Jonathan Lifflander Date: Thu, 14 May 2020 12:48:47 -0700 Subject: [PATCH] #98: serializers: add base overload for check and skip --- src/checkpoint/serializers/base_serializer.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/checkpoint/serializers/base_serializer.h b/src/checkpoint/serializers/base_serializer.h index 7d28a2c8..3ade82af 100644 --- a/src/checkpoint/serializers/base_serializer.h +++ b/src/checkpoint/serializers/base_serializer.h @@ -49,6 +49,7 @@ #include #include +#include namespace checkpoint { @@ -85,6 +86,12 @@ struct Serializer { serdes.contiguousBytes(static_cast(ptr), sizeof(T), num_elms); } + template + void check(T& t, std::string name) { } + + template + void skip(T& t, std::string name = "") { } + SerialByteType* getBuffer() const { return nullptr; } SerialByteType* getSpotIncrement(SerialSizeType const inc) { return nullptr; }