cpp-libp2p icon indicating copy to clipboard operation
cpp-libp2p copied to clipboard

upgrade to a more recent version of boost

Open saurik opened this issue 4 years ago • 1 comments

The version of Boost currently in use by this library is 1.72.0-p1, which is over a year and a half old. FWIW, I've had no issue compiling it with newer versions of Boost--and hadn't even noticed you had locked in such an old version, as I don't use cmake/hunter--until this week, with the release of 1.76.0, which finally removed support for the apparently-long-deprecated older way of using Boost Outcome's macros.

https://www.boost.org/doc/libs/develop/libs/outcome/doc/html/changelog/upgrade_v21_v22.html

As cmake/hunter has in fact been updating to more recent versions of Boost as they come out, I'm honestly not sure exactly what is holding back the version being used by this project (this seems like some kind of secret decision being made by cmake hunter somewhere, maybe due to something buried in a dependency... not that I've so far found anything that looks like such anywhere in any of these projects).

saurik avatar May 06 '21 05:05 saurik

For anyone else with this issue--projects that wants to use the latest version of boost but also want to build in libp2p--I've had success compiling using a separate copy of outcome pegged at 1.75.0 along with a newer version of the rest of the boost (currently 1.76.0... it is, of course, quite possible that the old version of outcome will eventually break, once again holding back boost).

saurik avatar Jul 11 '21 23:07 saurik