From 1a92274ebc93328a6ee6a78b300b9ec9693fafe4 Mon Sep 17 00:00:00 2001 From: "dakun.zhang" Date: Mon, 13 May 2024 16:09:33 +0200 Subject: [PATCH] fix systran/fuzzymatch docker image: Boost 1.74 --- include/fuzzy/sentence.hh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/fuzzy/sentence.hh b/include/fuzzy/sentence.hh index 5b77e40..d8fbc8c 100644 --- a/include/fuzzy/sentence.hh +++ b/include/fuzzy/sentence.hh @@ -4,6 +4,17 @@ #include #include +// +// Even latest Debian Sid (March 2023) uses Boost 1.74 which does not behave well with very fresh compilers and triggers this error: +// https://github.com/pavel-odintsov/fastnetmon/issues/970 +// This bug was fixed in fresh Boost versions: https://github.com/boostorg/serialization/issues/219 and we apply workaround only for 1.74 +// + +#include +#if BOOST_VERSION / 100000 == 1 && BOOST_VERSION / 100 % 1000 == 74 +#include +#endif + #include #include