#if BOOST_VERSION < 108000

release/4.3a0
Tal Regev 2024-02-10 12:52:24 +02:00
parent f724f30388
commit 17a4e4c174
No known key found for this signature in database
GPG Key ID: A421558E0F87AC82
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,8 @@
// Defined only if boost serialization is enabled // Defined only if boost serialization is enabled
#ifdef GTSAM_ENABLE_BOOST_SERIALIZATION #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
// Only for old boost
#if BOOST_VERSION < 108000
#pragma once #pragma once
#include <optional> #include <optional>
#include <boost/config.hpp> #include <boost/config.hpp>
@ -99,3 +101,4 @@ void serialize(Archive& ar, std::optional<T>& t, const unsigned int version) {
} // namespace serialization } // namespace serialization
} // namespace boost } // namespace boost
#endif #endif
#endif