Skip to content

Commit

Permalink
#188: polymorphic: add missing template<> (probably need both variants)
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Mar 29, 2021
1 parent 5f047d2 commit 93e62f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/checkpoint/dispatch/vrt/derived.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
::checkpoint::dispatch::vrt::TypeIdx _checkpointDynamicTypeIndex() override;

#define checkpoint_virtual_serialize_derived_from_def(CLASS, PARENT) \
template <> \
void CLASS::_checkpointDynamicSerialize( \
void* s, \
::checkpoint::dispatch::vrt::TypeIdx base_ser_idx, \
Expand Down Expand Up @@ -123,6 +124,7 @@
typeid(_CheckpointDerivedType).name(), base_ser_idx \
); \
} \
template <> \
::checkpoint::dispatch::vrt::TypeIdx CLASS::_checkpointDynamicTypeIndex() { \
using _CheckpointDerivedType = \
::checkpoint::dispatch::vrt::checkpoint_derived_type_t<decltype(this)>; \
Expand Down

0 comments on commit 93e62f3

Please sign in to comment.