Skip to content

Commit 0d7d159

Browse files
committed
fix for boost serialization collision
1 parent 67cf870 commit 0d7d159

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gtsam/base/std_optional_serialization.h

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ namespace std { template<> struct is_trivially_move_constructible<boost::seriali
5656
#endif
5757

5858

59+
#if __cplusplus < 201703L
5960
// function specializations must be defined in the appropriate
6061
// namespace - boost::serialization
6162
namespace boost {
@@ -99,3 +100,4 @@ void serialize(Archive& ar, std::optional<T>& t, const unsigned int version) {
99100
} // namespace serialization
100101
} // namespace boost
101102
#endif
103+
#endif

0 commit comments

Comments
 (0)