Skip to content

Commit

Permalink
Merge pull request #1728 from stevenlovegrove/fix/boost-matching-endif
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Mar 3, 2024
2 parents 0149005 + 4947a10 commit 952ce5e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions gtsam/base/std_optional_serialization.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
* Functionality to serialize std::optional<T> to boost::archive
* Inspired from this PR: https://github.com/boostorg/serialization/pull/163
* ---------------------------------------------------------------------------- */
#pragma once

// Defined only if boost serialization is enabled
#ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
// Only for old boost
#if BOOST_VERSION < 108000
#pragma once
#include <optional>
#include <boost/config.hpp>

Expand Down Expand Up @@ -107,5 +105,5 @@ void serialize(Archive& ar, std::optional<T>& t, const unsigned int version) {

} // namespace serialization
} // namespace boost
#endif
#endif
#endif // BOOST_VERSION < 108400
#endif // GTSAM_ENABLE_BOOST_SERIALIZATION

0 comments on commit 952ce5e

Please sign in to comment.