Merge pull request #1721 from talregev/TalR/fix_macos

Fixing std::optional handling being redundant in Boost version > 1.80
release/4.3a0
Fan Jiang 2024-02-27 12:43:47 -05:00 committed by GitHub
commit 5b9668461f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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