diff --git a/src/checkpoint/dispatch/dispatch_serializer_nonbyte.h b/src/checkpoint/dispatch/dispatch_serializer_nonbyte.h index 247e0c42..1ab6ea9a 100644 --- a/src/checkpoint/dispatch/dispatch_serializer_nonbyte.h +++ b/src/checkpoint/dispatch/dispatch_serializer_nonbyte.h @@ -91,7 +91,7 @@ struct SerializerDispatchNonByte { template using hasInSerialize = - typename std::enable_if::has_serialize_instrusive, T>::type; + typename std::enable_if::has_serialize_instrusive && !SerializableTraits::has_serialize_noninstrusive, T>::type; template using hasNoninSerialize =