Skip to content

Commit 17a4e4c

Browse files
committed
#if BOOST_VERSION < 108000
1 parent f724f30 commit 17a4e4c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gtsam/base/std_optional_serialization.h

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
// Defined only if boost serialization is enabled
1313
#ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
14+
// Only for old boost
15+
#if BOOST_VERSION < 108000
1416
#pragma once
1517
#include <optional>
1618
#include <boost/config.hpp>
@@ -99,3 +101,4 @@ void serialize(Archive& ar, std::optional<T>& t, const unsigned int version) {
99101
} // namespace serialization
100102
} // namespace boost
101103
#endif
104+
#endif

0 commit comments

Comments
 (0)