Skip to content

Commit

Permalink
Merge pull request #1169 from borglab/fix/robust_deserialization
Browse files Browse the repository at this point in the history
Fix robust deserialization
  • Loading branch information
ProfFan authored Apr 15, 2022
2 parents 415e41b + 41c8a67 commit 5955ecc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gtsam/linear/LossFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ class GTSAM_EXPORT Cauchy : public Base {
void serialize(ARCHIVE &ar, const unsigned int /*version*/) {
ar &BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
ar &BOOST_SERIALIZATION_NVP(k_);
ar &BOOST_SERIALIZATION_NVP(ksquared_);
}
};

Expand Down Expand Up @@ -273,6 +274,7 @@ class GTSAM_EXPORT Welsch : public Base {
void serialize(ARCHIVE &ar, const unsigned int /*version*/) {
ar &BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
ar &BOOST_SERIALIZATION_NVP(c_);
ar &BOOST_SERIALIZATION_NVP(csquared_);
}
};

Expand Down

0 comments on commit 5955ecc

Please sign in to comment.