Skip to content

Commit

Permalink
Merge pull request #70 from monsieurzhang/systran_update_docker
Browse files Browse the repository at this point in the history
fix systran/fuzzymatch docker image: Boost 1.74
  • Loading branch information
monsieurzhang authored May 17, 2024
2 parents af746bb + 1a92274 commit 4cf4af9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions include/fuzzy/sentence.hh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@
#include <vector>
#include <unordered_map>

//
// 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 <boost/serialization/version.hpp>
#if BOOST_VERSION / 100000 == 1 && BOOST_VERSION / 100 % 1000 == 74
#include <boost/serialization/library_version_type.hpp>
#endif

#include <boost/serialization/string.hpp>
#include <boost/serialization/unordered_map.hpp>

Expand Down

0 comments on commit 4cf4af9

Please sign in to comment.