Skip to content

Commit 5f931c4

Browse files
Close unmatched endif
1 parent 0149005 commit 5f931c4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

gtsam/base/std_optional_serialization.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
* Functionality to serialize std::optional<T> to boost::archive
99
* Inspired from this PR: https://github.com/boostorg/serialization/pull/163
1010
* ---------------------------------------------------------------------------- */
11+
#pragma once
1112

1213
// Defined only if boost serialization is enabled
1314
#ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
1415
// Only for old boost
1516
#if BOOST_VERSION < 108000
16-
#pragma once
1717
#include <optional>
1818
#include <boost/config.hpp>
1919

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

108108
} // namespace serialization
109109
} // namespace boost
110-
#endif
111-
#endif
110+
#endif // BOOST_VERSION < 108400
111+
#endif // BOOST_VERSION < 108000
112+
#endif // GTSAM_ENABLE_BOOST_SERIALIZATION

0 commit comments

Comments
 (0)