Skip to content

Commit

Permalink
#2372: use updated virtual serialization macros
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Dec 5, 2024
1 parent 2fd8152 commit df9c67a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/collection/polymorphic_collection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static constexpr int32_t const default_num_elms = 16;
struct InitialConsTag{};

struct Hello : vt::Collection<Hello, vt::Index1D> {
checkpoint_virtual_serialize_root()
magistrate_virtual_serialize_root()

explicit Hello(InitialConsTag) {}
explicit Hello(checkpoint::SERIALIZE_CONSTRUCT_TAG) {}
Expand All @@ -68,7 +68,7 @@ struct Hello : vt::Collection<Hello, vt::Index1D> {

template <typename T>
struct HelloTyped : Hello {
checkpoint_virtual_serialize_derived_from(Hello)
magistrate_virtual_serialize_derived_from(Hello)

explicit HelloTyped(InitialConsTag);
explicit HelloTyped(checkpoint::SERIALIZE_CONSTRUCT_TAG)
Expand Down
2 changes: 1 addition & 1 deletion src/vt/runtime/component/diagnostic_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ struct DiagnosticSnapshotValues {
template <typename T>
struct DiagnosticValue : DiagnosticBase {
#if !vt_check_enabled(trace_only)
checkpoint_virtual_serialize_derived_from(DiagnosticBase)
magistrate_virtual_serialize_derived_from(DiagnosticBase)
#endif
/**
* \internal \brief Create a new typed diagnostic value
Expand Down
2 changes: 1 addition & 1 deletion src/vt/runtime/component/diagnostic_value_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ namespace vt { namespace runtime { namespace component { namespace detail {
*/
struct DiagnosticBase {
#if !vt_check_enabled(trace_only)
checkpoint_virtual_serialize_root()
magistrate_virtual_serialize_root()
#endif
/**
* \internal \brief Construct a new diagnostic base value
Expand Down
6 changes: 3 additions & 3 deletions src/vt/vrt/collection/types/storage/store_elm.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace vt { namespace vrt { namespace collection { namespace storage {
*/
struct StoreElmBase {
/// uses polymorphic serialization
checkpoint_virtual_serialize_root()
magistrate_virtual_serialize_root()

using json = nlohmann::json;

Expand Down Expand Up @@ -214,7 +214,7 @@ struct StoreElm<
> : StoreElmBase
{
/// polymorphic serializer for derived class
checkpoint_virtual_serialize_derived_from(StoreElmBase)
magistrate_virtual_serialize_derived_from(StoreElmBase)

/**
* \brief Construct with value
Expand Down Expand Up @@ -329,7 +329,7 @@ struct StoreElm<
> : StoreElmBase
{
/// polymorphic serializer for derived class
checkpoint_virtual_serialize_derived_from(StoreElmBase)
magistrate_virtual_serialize_derived_from(StoreElmBase)

static_assert(
std::is_trivially_copyable<T>::value and not std::is_pointer<T>::value,
Expand Down

0 comments on commit df9c67a

Please sign in to comment.