From a392907978506408482d0bdd388534455ba8dfba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-No=C3=ABl=20Grad?= Date: Wed, 28 Oct 2020 21:22:39 +0100 Subject: [PATCH] core: Add guard for boost 1.74.0 This include guards against an issue in boost::serialization from boost 1.74.0 that leads to compiler error "explicit specialization of undeclared template struct 'version'" when including . More details in tickets: https://github.com/boostorg/serialization/issues/210 https://github.com/boostorg/serialization/issues/217 --- src/utils/tests/memcpy_archive_test.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/utils/tests/memcpy_archive_test.cpp b/src/utils/tests/memcpy_archive_test.cpp index 8aa07f50e12..19703260d2e 100644 --- a/src/utils/tests/memcpy_archive_test.cpp +++ b/src/utils/tests/memcpy_archive_test.cpp @@ -21,6 +21,15 @@ #define BOOST_TEST_DYN_LINK #include +/* This include guards against an issue + * in boost::serialization from boost 1.74.0 that leads to compiler error + * "explicit specialization of undeclared template struct 'version'" when + * including . More details in tickets: + * https://github.com/boostorg/serialization/issues/210 + * https://github.com/boostorg/serialization/issues/217 + */ +#include + #include #include