The order in which you include stacktrace.hpp & asio.hpp can cause a compilation error on Windows.
I tested this on MSVC 19.34.31947 with Boost 1.84.0.
The same code compiles without issue on Linux (tested with gcc 10 on Debian 11).
This isn't really a huge problem as all you have to do to fix it is include socket_types.hpp before stacktrace.hpp, but the inconsistency is weird when cross-compiling.
The order in which you include
stacktrace.hpp
&asio.hpp
can cause a compilation error on Windows.I tested this on MSVC 19.34.31947 with Boost 1.84.0.
For example, this code doesn't compile:
This is the error message:
It compiles fine if you swap the order:
The same code compiles without issue on Linux (tested with gcc 10 on Debian 11).
This isn't really a huge problem as all you have to do to fix it is include
socket_types.hpp
beforestacktrace.hpp
, but the inconsistency is weird when cross-compiling.