Skip to content

Commit

Permalink
#98: serializers: add base overload for check and skip
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed May 14, 2020
1 parent 313ac6a commit a9392b8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/checkpoint/serializers/base_serializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@

#include <type_traits>
#include <cstdlib>
#include <string>

namespace checkpoint {

Expand Down Expand Up @@ -85,6 +86,12 @@ struct Serializer {
serdes.contiguousBytes(static_cast<void*>(ptr), sizeof(T), num_elms);
}

template <typename T>
void check(T& t, std::string name) { }

template <typename T>
void skip(T& t, std::string name = "") { }

SerialByteType* getBuffer() const { return nullptr; }
SerialByteType* getSpotIncrement(SerialSizeType const inc) { return nullptr; }

Expand Down

0 comments on commit a9392b8

Please sign in to comment.