Skip to content

Commit

Permalink
Close unmatched endif
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenlovegrove committed Feb 29, 2024
1 parent 0149005 commit 5f931c4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gtsam/base/std_optional_serialization.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
* 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 +107,6 @@ void serialize(Archive& ar, std::optional<T>& t, const unsigned int version) {

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

0 comments on commit 5f931c4

Please sign in to comment.