Skip to content

Commit

Permalink
Merge pull request #1721 from talregev/TalR/fix_macos
Browse files Browse the repository at this point in the history
Fixing std::optional handling being redundant in Boost version > 1.80
  • Loading branch information
ProfFan authored Feb 27, 2024
2 parents f724f30 + 17a4e4c commit 5b96684
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gtsam/base/std_optional_serialization.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

// 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 @@ -99,3 +101,4 @@ void serialize(Archive& ar, std::optional<T>& t, const unsigned int version) {
} // namespace serialization
} // namespace boost
#endif
#endif

0 comments on commit 5b96684

Please sign in to comment.