Skip to content

Commit d19ebe0

Browse files
committed
fix issue with Boost collisions
1 parent f12a24e commit d19ebe0

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
@@ -56,6 +56,8 @@ namespace std { template<> struct is_trivially_move_constructible<boost::seriali
5656
#endif
5757

5858

59+
// Only for old boost
60+
#if BOOST_VERSION < 108000
5961
// function specializations must be defined in the appropriate
6062
// namespace - boost::serialization
6163
namespace boost {
@@ -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)