1
0
forked from boostorg/core

Add load_construct_data_adl, save_construct_data_adl

This commit is contained in:
Peter Dimov
2023-02-21 02:04:39 +02:00
parent 6debbeb377
commit 0be25e19cc
4 changed files with 116 additions and 0 deletions

View File

@@ -111,6 +111,20 @@ template<class A, class T> inline void split_member( A& a, T& t, unsigned int v
detail::load_or_save_m< A::is_saving::value >()( a, t, v );
}
// load_construct_data_adl
template<class Ar, class T> void load_construct_data_adl( Ar& ar, T* t, unsigned int v )
{
load_construct_data( ar, t, serialization::core_version_type( v ) );
}
// save_construct_data_adl
template<class Ar, class T> void save_construct_data_adl( Ar& ar, T const* t, unsigned int v )
{
save_construct_data( ar, t, serialization::core_version_type( v ) );
}
} // namespace core
} // namespace boost