Skip to content

Commit

Permalink
#1009: memory footprinting: limit MsgSharedPtr serializer to footprin…
Browse files Browse the repository at this point in the history
…ting
  • Loading branch information
cz4rs committed Nov 21, 2020
1 parent 52e25f8 commit 24ee3af
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/vt/messaging/message/smart_ptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,12 @@ struct MsgSharedPtr final {
<< ")";
}

template <typename SerializerT>
template <
typename SerializerT,
typename = std::enable_if_t<
std::is_same<SerializerT, checkpoint::Footprinter>::value
>
>
void serialize(SerializerT& s) {
if (ownsMessage()) {
auto ptr = get();
Expand Down

0 comments on commit 24ee3af

Please sign in to comment.