Skip to content

Commit

Permalink
core: Add guard for boost 1.74.0
Browse files Browse the repository at this point in the history
This <boost/serialization/version.hpp> 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 <boost/serialization/optional.hpp>. More details in tickets:
boostorg/serialization#210
boostorg/serialization#217
  • Loading branch information
jngrad committed Oct 28, 2020
1 parent 926fce0 commit a392907
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/utils/tests/memcpy_archive_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@
#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>

/* This <boost/serialization/version.hpp> 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 <boost/serialization/optional.hpp>. More details in tickets:
* https://github.com/boostorg/serialization/issues/210
* https://github.com/boostorg/serialization/issues/217
*/
#include <boost/serialization/version.hpp>

#include <utils/serialization/memcpy_archive.hpp>

#include <utils/Vector.hpp>
Expand Down

0 comments on commit a392907

Please sign in to comment.