diff --git a/src/vt/messaging/message/smart_ptr.h b/src/vt/messaging/message/smart_ptr.h index 9ce965b088..ee5db61d07 100644 --- a/src/vt/messaging/message/smart_ptr.h +++ b/src/vt/messaging/message/smart_ptr.h @@ -216,7 +216,12 @@ struct MsgSharedPtr final { << ")"; } - template + template < + typename SerializerT, + typename = std::enable_if_t< + std::is_same::value + > + > void serialize(SerializerT& s) { if (ownsMessage()) { auto ptr = get();