Skip to content

Commit

Permalink
Workaround for upstream boost issue #119
Browse files Browse the repository at this point in the history
  • Loading branch information
ProfFan committed Dec 21, 2019
1 parent 74bda2d commit 873dec0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gtsam/inference/BayesTreeCliqueBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ namespace gtsam {
template<class ARCHIVE>
void serialize(ARCHIVE & ar, const unsigned int /*version*/) {
ar & BOOST_SERIALIZATION_NVP(conditional_);
ar & BOOST_SERIALIZATION_NVP(parent_);
if (parent_) { // TODO(fan): Workaround for boost/serialization #119
ar & BOOST_SERIALIZATION_NVP(parent_);
}
ar & BOOST_SERIALIZATION_NVP(children);
}

Expand Down

0 comments on commit 873dec0

Please # to comment.