bugfix on serialization

release/4.3a0
Gerry Chen 2022-07-19 17:19:47 -04:00
parent 00cf13bd4b
commit ea6e32de82
No known key found for this signature in database
GPG Key ID: E9845092D3A57286
1 changed files with 1 additions and 4 deletions

View File

@ -503,11 +503,8 @@ class NoiseModelFactor1 : public NoiseModelFactorN<VALUE> {
template <class ARCHIVE>
void serialize(ARCHIVE& ar, const unsigned int /*version*/) {
std::cout << "checkpoint a open " << std::endl;
// ar& boost::serialization::make_nvp(
// "NoiseModelFactor", boost::serialization::base_object<Base>(*this));
ar& boost::serialization::make_nvp(
"NoiseModelFactorN",
boost::serialization::base_object<NoiseModelFactorN<VALUE>>(*this));
"NoiseModelFactor", boost::serialization::base_object<Base>(*this));
std::cout << "checkpoint a close" << std::endl;
}
}; // \class NoiseModelFactor1