From 062da875a577fe5e1e1c3b715241f3d840d16894 Mon Sep 17 00:00:00 2001 From: Jonathan Lifflander Date: Mon, 19 Oct 2020 13:30:13 -0700 Subject: [PATCH] #143: vrt serialize: fix trait inhibiting registration when not constructible --- src/checkpoint/dispatch/vrt/serialize_instantiator.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/checkpoint/dispatch/vrt/serialize_instantiator.h b/src/checkpoint/dispatch/vrt/serialize_instantiator.h index 7880a49b..b02fb3bb 100644 --- a/src/checkpoint/dispatch/vrt/serialize_instantiator.h +++ b/src/checkpoint/dispatch/vrt/serialize_instantiator.h @@ -58,7 +58,8 @@ struct InstantiateIfPossible< ObjT, SerializerT, typename std::enable_if_t< - SerializableTraits::is_serializable + SerializableTraits::has_serialize_function or + SerializableTraits::is_bytecopyable > > { static void registerIt() { @@ -82,7 +83,8 @@ struct InstantiateIfPossible< ObjT, SerializerT, typename std::enable_if_t< - not SerializableTraits::is_serializable + not (SerializableTraits::has_serialize_function or + SerializableTraits::is_bytecopyable) > > { static void registerIt() {