Commit 882a795b authored by JasonChmn's avatar JasonChmn Committed by Pierre Fernbach
Browse files

[Version boost] Remove warning for boost serialization version => Do something...

[Version boost] Remove warning for boost serialization version => Do something in function of version if needed ?
parent 265eaa19
......@@ -68,6 +68,9 @@ friend class boost::serialization::access;
template<class Archive>
void serialize(Archive& ar, const unsigned int version){
if (version) {
// Do something depending on version ?
}
ar & boost::serialization::make_nvp("m_minus_i", m_minus_i);
ar & boost::serialization::make_nvp("i", i_);
ar & boost::serialization::make_nvp("bin_m_i", bin_m_i_);
......
......@@ -419,6 +419,9 @@ struct bezier_curve : public curve_abc<Time, Numeric, Safe, Point>,
template<class Archive>
void serialize(Archive& ar, const unsigned int version){
if (version) {
// Do something depending on version ?
}
ar & boost::serialization::make_nvp("T_min", T_min_);
ar & boost::serialization::make_nvp("T_max", T_max_);
ar & boost::serialization::make_nvp("mult_T", mult_T_);
......
......@@ -385,6 +385,9 @@ struct cubic_hermite_spline : public curve_abc<Time, Numeric, Safe, Point>,
template<class Archive>
void serialize(Archive& ar, const unsigned int version){
if (version) {
// Do something depending on version ?
}
ar & boost::serialization::make_nvp("control_points", control_points_);
ar & boost::serialization::make_nvp("time_control_points", time_control_points_);
ar & boost::serialization::make_nvp("duration_splines", duration_splines_);
......
......@@ -268,6 +268,9 @@ struct exact_cubic : public piecewise_curve<Time, Numeric, Dim, Safe, Point, T_P
template<class Archive>
void serialize(Archive& ar, const unsigned int version){
if (version) {
// Do something depending on version ?
}
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(exact_cubic_t);
}
};
......
......@@ -319,6 +319,9 @@ struct piecewise_curve : public curve_abc<Time, Numeric, Safe, Point>,
template<class Archive>
void serialize(Archive& ar, const unsigned int version){
if (version) {
// Do something depending on version ?
}
ar & boost::serialization::make_nvp("curves", curves_);
ar & boost::serialization::make_nvp("time_curves", time_curves_);
ar & boost::serialization::make_nvp("size", size_);
......
......@@ -239,6 +239,9 @@ struct polynomial : public curve_abc<Time, Numeric, Safe, Point>,
template<class Archive>
void serialize(Archive& ar, const unsigned int version){
if (version) {
// Do something depending on version ?
}
ar & boost::serialization::make_nvp("coefficients", coefficients_);
ar & boost::serialization::make_nvp("dim", dim_);
ar & boost::serialization::make_nvp("degree", degree_);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment