Skip to content

Commit

Permalink
#143: vrt serialize: fix trait inhibiting registration when not const…
Browse files Browse the repository at this point in the history
…ructible
  • Loading branch information
lifflander committed Oct 19, 2020
1 parent d2a0ad2 commit 062da87
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/checkpoint/dispatch/vrt/serialize_instantiator.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ struct InstantiateIfPossible<
ObjT,
SerializerT,
typename std::enable_if_t<
SerializableTraits<ObjT, SerializerT>::is_serializable
SerializableTraits<ObjT, SerializerT>::has_serialize_function or
SerializableTraits<ObjT, SerializerT>::is_bytecopyable
>
> {
static void registerIt() {
Expand All @@ -82,7 +83,8 @@ struct InstantiateIfPossible<
ObjT,
SerializerT,
typename std::enable_if_t<
not SerializableTraits<ObjT, SerializerT>::is_serializable
not (SerializableTraits<ObjT, SerializerT>::has_serialize_function or
SerializableTraits<ObjT, SerializerT>::is_bytecopyable)
>
> {
static void registerIt() {
Expand Down

0 comments on commit 062da87

Please sign in to comment.