Closed 3n16m4 closed 2 years ago
Thanks for reporting and for providing the repo. As long as I've seen, it seems related to concepts. It only happens in C++20 (if you do the following, it builds regularly):
target_compile_features(CMakeProject1 PRIVATE cxx_std_17)
# ...
if (CMAKE_VERSION VERSION_GREATER 3.12)
set_property(TARGET CMakeProject1 PROPERTY CXX_STANDARD 17)
endif()
As a workaround until I provide a fix, defining BOOST_ASIO_DISABLE_CONCEPTS
does the trick:
target_compile_definitions(CMakeProject1 PRIVATE BOOST_ASIO_DISABLE_CONCEPTS)
As mentioned in the title, for some reason MSVC fails to build (any) of the examples provided by the documentation page of Boost.Mysql. GCC 12 and Clang 14 build perfectly fine for me. It did not make a difference if I changed the target C++ standard nor did it make a difference if I chose a different branch (master, develop) or tag number.
To reproduce the issue, I've created a repository with an example and a CMake project to illustrate the problem:
Example output:
Expected output:
Information about my system: