Skip to content

Commit

Permalink
Attempt to addd workaround for Boost 1.74. Closes #970
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-odintsov committed Mar 7, 2023
1 parent c220afe commit c0d0454
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/abstract_subnet_counters.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@

#include "speed_counters.hpp"

//
// 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/unordered_map.hpp>

// Class for abstract per key counters
Expand Down

0 comments on commit c0d0454

Please sign in to comment.