Open OgreTransporter opened 1 month ago
I confirm that there is a problem in my project. Windows 10 Microsoft Visual Studio Enterprise 2022 (64-bit) - Current Version 17.6.0 17.6.33712.159 ISO C++20 Standard (/std:c++20)
I get an error on Asio versions 1-31 and 1-32
1>init.cpp 1>c:\dev\asio-asio-1-31-0\asio\include\asio\co_composed.hpp(161,33): error C3546: '...': there are no parameter packs available to expand 1>c:\dev\asio-asio-1-31-0\asio\include\asio\co_composed.hpp(162,2): message : see reference to class template instantiation 'asio::detail::co_composed_state_return<Executors,Handler,asio::detail::co_composed_returns
>' being compiled 1>main.cpp 1>TCPClient.cpp 1>c:\dev\asio-asio-1-31-0\asio\include\asio\co_composed.hpp(161,33): error C3546: '...': there are no parameter packs available to expand 1>c:\dev\asio-asio-1-31-0\asio\include\asio\co_composed.hpp(162,2): message : see reference to class template instantiation 'asio::detail::co_composed_state_return<Executors,Handler,asio::detail::co_composed_returns >' being compiled 1>TCPConnection.cpp 1>c:\dev\asio-asio-1-31-0\asio\include\asio\co_composed.hpp(161,33): error C3546: '...': there are no parameter packs available to expand 1>c:\dev\asio-asio-1-31-0\asio\include\asio\co_composed.hpp(162,2): message : see reference to class template instantiation 'asio::detail::co_composed_state_return<Executors,Handler,asio::detail::co_composed_returns >' being compiled 1>UDPFormularServer.cpp 1>c:\dev\asio-asio-1-31-0\asio\include\asio\co_composed.hpp(161,33): error C3546: '...': there are no parameter packs available to expand 1>c:\dev\asio-asio-1-31-0\asio\include\asio\co_composed.hpp(162,2): message : see reference to class template instantiation 'asio::detail::co_composed_state_return<Executors,Handler,asio::detail::co_composed_returns >' being compiled 1>init.cpp 1>c:\dev\asio-asio-1-32-0\asio\include\asio\co_composed.hpp(161,33): error C3546: '...': there are no parameter packs available to expand 1>c:\dev\asio-asio-1-32-0\asio\include\asio\co_composed.hpp(162,2): message : see reference to class template instantiation 'asio::detail::co_composed_state_return<Executors,Handler,asio::detail::co_composed_returns
>' being compiled 1>main.cpp 1>TCPClient.cpp 1>c:\dev\asio-asio-1-32-0\asio\include\asio\co_composed.hpp(161,33): error C3546: '...': there are no parameter packs available to expand 1>c:\dev\asio-asio-1-32-0\asio\include\asio\co_composed.hpp(162,2): message : see reference to class template instantiation 'asio::detail::co_composed_state_return<Executors,Handler,asio::detail::co_composed_returns >' being compiled 1>TCPConnection.cpp 1>c:\dev\asio-asio-1-32-0\asio\include\asio\co_composed.hpp(161,33): error C3546: '...': there are no parameter packs available to expand 1>c:\dev\asio-asio-1-32-0\asio\include\asio\co_composed.hpp(162,2): message : see reference to class template instantiation 'asio::detail::co_composed_state_return<Executors,Handler,asio::detail::co_composed_returns >' being compiled 1>UDPFormularServer.cpp 1>c:\dev\asio-asio-1-32-0\asio\include\asio\co_composed.hpp(161,33): error C3546: '...': there are no parameter packs available to expand 1>c:\dev\asio-asio-1-32-0\asio\include\asio\co_composed.hpp(162,2): message : see reference to class template instantiation 'asio::detail::co_composed_state_return<Executors,Handler,asio::detail::co_composed_returns >' being compiled
There is no error on version 1-28
Add:
and no problem on Microsoft Visual Studio (64-bit) Version 17.11.5 VisualStudio.17.Release/17.11.5+35327.3
I have loaded the current release (https://archives.boost.io/release/1.86.0/source/boost_1_86_0.7z) and created the following test project:
CMakeLists.txt
main.cpp
If the C++ standard is set to C++20 or newer, there are errors when compiling. It is sufficient to include the ASIO header. It is not necessary to use ASIO.