Unverified Commit 9568e23d authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub
Browse files

Merge pull request #226 from nim65s/topic/c++17

workaround GCC >= 7 / C++17 / boost::serialization / Eigen bug
parents 80fe9ecf 7d0f2872
......@@ -16,6 +16,17 @@
#include <boost/serialization/vector.hpp>
#include <boost/serialization/array.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 boost
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment