Skip to content

Commit

Permalink
#156: footprinting: improve formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Nov 24, 2020
1 parent fe994c3 commit 0d07cd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/checkpoint/container/raw_ptr_serialize.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ void serializeRawPtr(SerializerT& s, void* ptr) {

#define CHECKPOINT_FOOTPRINT_PIMPL_WITH_SIZEOF_PTR(PIMPL_TYPE) \
template < \
typename SerializerT, \
typename = std::enable_if_t< std::is_same<SerializerT, checkpoint::Footprinter >::value > \
> \
typename SerializerT, \
typename = std::enable_if_t< std::is_same<SerializerT, checkpoint::Footprinter >::value > \
> \
void serialize(SerializerT &s, PIMPL_TYPE *t) { \
s.countBytes(t); \
}
Expand Down
4 changes: 3 additions & 1 deletion src/checkpoint/dispatch/dispatch_serializer_nonbyte.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ struct SerializerDispatchNonByte {
not SerializableTraits<U, S>::is_traversable and
not std::is_enum<U>::value,
T
>::type;
>::type;
#else
template <typename U>
using hasInSerialize =
Expand Down Expand Up @@ -195,6 +195,8 @@ struct SerializerDispatchNonByte {
firstCall = false;
debug_checkpoint(
"SerializerDispatch: warning: simplified footprinting in use!\n"
"Objects of type: typeid=%s will not be traversed\n",
typeid(val).name()
);
}

Expand Down

0 comments on commit 0d07cd6

Please sign in to comment.