Skip to content

Commit

Permalink
#376: mark checkpoint_virtual_serialize macros as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Nov 20, 2024
1 parent 8aaf3fa commit e865956
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/checkpoint/dispatch/vrt/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@
#include "checkpoint/dispatch/vrt/inheritance_assert_helpers.h"
#include "checkpoint/dispatch/vrt/serialize_instantiator.h"

[[deprecated("checkpoint_virtual_serialize_root is deprecated,"
" please use magistrate_virtual_serialize_root")]]
constexpr bool checkpoint_virtual_serialize_root_is_deprecated() {return true; }

#define checkpoint_virtual_serialize_root \
static_assert(checkpoint_virtual_serialize_root_is_deprecated()); \
magistrate_virtual_serialize_root

#define magistrate_virtual_serialize_root() \
auto _CheckpointVSBaseTypeFn() -> decltype(auto) { return this; } \
virtual void _checkpointDynamicSerialize( \
Expand All @@ -74,6 +82,14 @@
return ::checkpoint::dispatch::vrt::objregistry::makeObjIdx<_CheckpointBaseType>(); \
}

[[deprecated("checkpoint_virtual_serialize_base is deprecated,"
" please use magistrate_virtual_serialize_base")]]
constexpr bool checkpoint_virtual_serialize_base_is_deprecated() {return true; }

#define checkpoint_virtual_serialize_base \
static_assert(checkpoint_virtual_serialize_base_is_deprecated()); \
magistrate_virtual_serialize_base

#define magistrate_virtual_serialize_base(BASE) magistrate_virtual_serialize_root()

namespace checkpoint { namespace dispatch { namespace vrt {
Expand Down

0 comments on commit e865956

Please sign in to comment.