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