add workaround for Eigen serialization issue
parent
a80308d19f
commit
120a69d7db
|
|
@ -40,6 +40,17 @@
|
||||||
#include <boost/archive/binary_oarchive.hpp>
|
#include <boost/archive/binary_oarchive.hpp>
|
||||||
#include <boost/serialization/export.hpp>
|
#include <boost/serialization/export.hpp>
|
||||||
|
|
||||||
|
// Workaround a bug in GCC >= 7 and C++17
|
||||||
|
// ref. https://gitlab.com/libeigen/eigen/-/issues/1676
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#if __GNUC__ >= 7 && __cplusplus >= 201703L
|
||||||
|
namespace boost { namespace serialization { struct U; } }
|
||||||
|
namespace Eigen { namespace internal {
|
||||||
|
template<> struct traits<boost::serialization::U> {enum {Flags=0};};
|
||||||
|
} }
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace gtsam {
|
namespace gtsam {
|
||||||
|
|
||||||
/** @name Standard serialization
|
/** @name Standard serialization
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue