Merge pull request #1728 from stevenlovegrove/fix/boost-matching-endif
commit
952ce5e66c
|
@ -8,12 +8,10 @@
|
||||||
* Functionality to serialize std::optional<T> to boost::archive
|
* Functionality to serialize std::optional<T> to boost::archive
|
||||||
* Inspired from this PR: https://github.com/boostorg/serialization/pull/163
|
* Inspired from this PR: https://github.com/boostorg/serialization/pull/163
|
||||||
* ---------------------------------------------------------------------------- */
|
* ---------------------------------------------------------------------------- */
|
||||||
|
#pragma once
|
||||||
|
|
||||||
// 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
|
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
|
@ -107,5 +105,5 @@ void serialize(Archive& ar, std::optional<T>& t, const unsigned int version) {
|
||||||
|
|
||||||
} // namespace serialization
|
} // namespace serialization
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
#endif
|
#endif // BOOST_VERSION < 108400
|
||||||
#endif
|
#endif // GTSAM_ENABLE_BOOST_SERIALIZATION
|
||||||
|
|
Loading…
Reference in New Issue