Closed 9chu closed 1 month ago
it seems like BOOST_ASIO_HAS_MOVE
is macro which is auto-detected by boost headers (boost config). why it could be detected differently when building boost log and when building your project? seems like a compiler or build flags mismatch, otherwise a boost bug for me.
I'm closing this issue as boost recipe has change A LOT since this issue was open.
If this issue remains, do not hesitate to reopen it! 😄
Package and Environment Details (include every applicable attribute)
Conan profile (output of
conan profile show default
orconan profile show <profile>
if custom profile is in use)Steps to reproduce (Include if Applicable)
Project structure
conan.cmake
from github
CMakeLists.txt
main.cpp
Download and rename it from the beast's offical example, and insert the following code somewhere in the main function to make it force linking boost_log_setup.
Running it
Open link to trigger the program:
http://localhost:8080
,And, it crash then.
What's wrong
The boost::asio links to a different implemention after linking the log library.
Which makes the
asio::executor::function
constructed by theBOOST_ASIO_HAS_MOVE
defined version but deconstructed by the other .Logs (Include/Attach if Applicable)
Click to expand log
``` [ 50%] Building CXX object CMakeFiles/Test.dir/main.cpp.o [100%] Linking CXX executable bin/Test ld: warning: direct access in function 'boost::asio::detail::executor_op