Fix for Boost 1.87#1
Conversation
|
Hm, in PopTracker I already use a custom websocketpp to allow mixing it with asio 1.30.2 and C++20-compilers. I think everything newer than 1.30.2 entails the same problems that you ran into with boost 1.87. Maybe we should fork websocketpp? How do you handle it for SoH? Do you happen to know what the minimum version of asio and boost is with the change so we can write it into the README? |
|
I believe in SoH AP (still in a secondary branch) there's not anything special done currently and they just expect you to have the correct Boost or asio installed. In my case though it's a bit different because I run NixOS and when I wanted to create a Nix derivation for SoH AP I needed to apply a patch for wswrap. It seems in nixpkgs they have Boost/asio current and have a patch applied for websocketpp so that it works for newer asio. Maybe a fork with this patch applied would be appropriate (or with your custom version you already have). Here's an excerpt from the PR that updated asio in nixpkgs explaining the change and the version information:
|
|
So I think we need to figure out what the minimum version of asio and boost are to support LMK if you want to take on the task of digging through changelogs or if I should do it.
That one does not work with latest boost and asio. |
|
So, it appears that the new code requires |
Got it, thank you for looking into it!
Maybe then the best approach would be to use some sort of Boost or asio version macro if that exists to choose whether to use |
|
I think we just need to document it since the versions are kinda old, but it may be a breaking change for a downstream project. I can work on this over the next couple of days, I hope. |
Fixes compilation with Boost after the 1.87 update. Tested with Ship of Harkinian Archipelago Alpha. Would probably make sense to merge this after zaphoyd/websocketpp#1164 if that happens but I'm not sure if it will.