<div dir="ltr">I turn to VS 2017 and everything is OK. So if you really need use boost.asio, you can try that.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 24, 2019 at 11:46 AM Leo Carreon via Boost-users <<a href="mailto:boost-users@lists.boost.org">boost-users@lists.boost.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <div dir="ltr"> <div dir="ltr"> <div style="font-size:12pt;font-family:Calibri;color:rgb(0,0,0)"> <div>Hi Boost Users,</div> <div> </div> <div>I am building Boost 1.72.0 in 64-bit mode with the flag /std:c++latest using Visual Studio 2019 16.4.2 and I am encountering the following issues:</div> <div> </div> <div>.\boost/asio/async_result.hpp(44): error C2062: type 'bool' unexpected</div> <div>.\boost/asio/async_result.hpp(45): error C2143: syntax error: missing ';' before '{'</div> <div>.\boost/asio/async_result.hpp(45): error C2447: '{': missing function header (old-style formal list?)</div> <div>.\boost/asio/async_result.hpp(56): error C7568: argument list missing after assumed function template 'callable_with'</div> <div>.\boost/asio/async_result.hpp(58): note: see reference to class template instantiation 'boost::asio::detail::is_completion_handler_for<T,R(Args...)>' being compiled</div> <div>.\boost/asio/async_result.hpp(56): error C2059: syntax error: '>'</div> <div>.\boost/asio/async_result.hpp(57): error C3770: 'unknown-type': is not a valid base class</div> <div>.\boost/asio/async_result.hpp(63): error C2062: type 'bool' unexpected</div> <div>.\boost/asio/async_result.hpp(64): error C2065: 'T': undeclared identifier</div> <div>.\boost/asio/async_result.hpp(64): error C2923: 'boost::asio::detail::is_completion_signature': 'T' is not a valid template type argument for parameter 'T'</div> <div>.\boost/asio/async_result.hpp(64): error C2955: 'boost::asio::detail::is_completion_signature': use of class template requires template argument list</div> <div>.\boost/asio/async_result.hpp(34): note: see declaration of 'boost::asio::detail::is_completion_signature'</div> <div>.\boost/asio/async_result.hpp(69): error C2061: syntax error: identifier 'completion_signature'</div> <div>.\boost/asio/async_result.hpp(70): error C2062: type 'bool' unexpected</div> <div>.\boost/asio/async_result.hpp(71): error C2065: 'T': undeclared identifier</div> <div>.\boost/asio/async_result.hpp(71): error C2065: 'Signature': undeclared identifier</div> <div>.\boost/asio/async_result.hpp(71): error C2923: 'boost::asio::detail::is_completion_handler_for': 'T' is not a valid template type argument for parameter 'T'</div> <div>.\boost/asio/async_result.hpp(71): error C2923: 'boost::asio::detail::is_completion_handler_for': 'Signature' is not a valid template type argument for parameter 'Signature'</div> <div>.\boost/asio/async_result.hpp(71): error C2955: 'boost::asio::detail::is_completion_handler_for': use of class template requires template argument list</div> <div>.\boost/asio/async_result.hpp(50): note: see declaration of 'boost::asio::detail::is_completion_handler_for'</div> <div>.\boost/asio/async_result.hpp(105): error C2039: 'completion_signature': is not a member of 'boost::asio'</div> <div>.\boost/asio/async_result.hpp(25): note: see declaration of 'boost::asio'</div> <div>.\boost/asio/async_result.hpp(105): error C2061: syntax error: identifier 'completion_signature'</div> <div>.\boost/asio/async_result.hpp(144): error C2061: syntax error: identifier 'completion_handler_for'</div> <div>.\boost/asio/async_result.hpp(190): note: see reference to class template instantiation 'boost::asio::async_result<CompletionToken>' being compiled</div> <div>.\boost/asio/async_result.hpp(144): error C2988: unrecognizable template declaration/definition</div> <div>.\boost/asio/async_result.hpp(144): error C2059: syntax error: ','</div> <div>.\boost/asio/async_result.hpp(150): error C2334: unexpected token(s) preceding '{'; skipping apparent function body</div> <div>.\boost/asio/async_result.hpp(194): error C2039: 'completion_signature': is not a member of 'boost::asio'</div> <div>.\boost/asio/async_result.hpp(25): note: see declaration of 'boost::asio'</div> <div>.\boost/asio/async_result.hpp(194): error C2061: syntax error: identifier 'completion_signature'</div> <div>.\boost/asio/async_result.hpp(195): error C2065: 'Signature': undeclared identifier</div> <div>.\boost/asio/async_result.hpp(196): error C2977: 'boost::asio::async_result': too many template arguments</div> <div>.\boost/asio/async_result.hpp(107): note: see declaration of 'boost::asio::async_result'</div> <div>.\boost/asio/async_result.hpp(198): error C2913: explicit specialization; 'boost::asio::async_result' is not a specialization of a class template</div> <div>.\boost/asio/async_result.hpp(205): error C2039: 'completion_signature': is not a member of 'boost::asio'</div> <div>.\boost/asio/async_result.hpp(25): note: see declaration of 'boost::asio'</div> <div>.\boost/asio/async_result.hpp(205): error C2061: syntax error: identifier 'completion_signature'</div> <div>.\boost/asio/async_result.hpp(211): error C2065: 'Signature': undeclared identifier</div> <div>.\boost/asio/async_result.hpp(251): note: see reference to class template instantiation 'boost::asio::async_completion<CompletionToken>' being compiled</div> <div>.\boost/asio/async_result.hpp(250): error C2065: 'Signature': undeclared identifier</div> <div>.\boost/asio/async_result.hpp(250): error C2955: 'boost::asio::async_result': use of class template requires template argument list</div> <div>.\boost/asio/async_result.hpp(195): note: see declaration of 'boost::asio::async_result'</div> <div>.\boost/asio/async_result.hpp(258): error C2955: 'boost::asio::async_result': use of class template requires template argument list</div> <div>.\boost/asio/async_result.hpp(195): note: see declaration of 'boost::asio::async_result'</div> <div>.\boost/asio/async_result.hpp(259): note: see reference to class template instantiation 'boost::asio::detail::async_result_helper<CompletionToken,Signature>' being compiled</div> <div>.\boost/asio/async_result.hpp(288): error C2672: 'boost::asio::detail::async_result_initiate_memfn_helper': no matching overloaded function found</div> <div>.\boost/asio/async_result.hpp(292): note: see reference to class template instantiation 'boost::asio::detail::async_result_has_initiate_memfn<CompletionToken,Signature>' being compiled</div> <div>.\boost/asio/async_result.hpp(290): error C3206: 'boost::asio::detail::async_result_initiate_memfn_helper': invalid template argument for 'T', missing template argument list on class template 'boost::asio::async_result'</div> <div>.\boost/asio/async_result.hpp(281): note: see declaration of 'boost::asio::detail::async_result_initiate_memfn_helper'</div> <div>.\boost/asio/async_result.hpp(290): error C3206: 'boost::asio::detail::async_result_initiate_memfn_helper': invalid template argument for '<unnamed-symbol>', missing template argument list on class template 'boost::asio::async_result'</div> <div>.\boost/asio/async_result.hpp(278): note: see declaration of 'boost::asio::detail::async_result_initiate_memfn_helper'</div> <div>.\boost/asio/async_result.hpp(350): error C2039: 'completion_signature': is not a member of 'boost::asio'</div> <div>.\boost/asio/async_result.hpp(25): note: see declaration of 'boost::asio'</div> <div>.\boost/asio/async_result.hpp(350): error C2061: syntax error: identifier 'completion_signature'</div> <div>.\boost/asio/async_result.hpp(353): error C2065: 'Signature': undeclared identifier</div> <div>.\boost/asio/async_result.hpp(353): error C2923: 'boost::asio::detail::async_result_has_initiate_memfn': 'Signature' is not a valid template type argument for parameter 'Signature'</div> <div>.\boost/asio/async_result.hpp(354): error C2760: syntax error: unexpected token '>', expected 'expression'</div> <div>.\boost/asio/async_result.hpp(359): error C2065: 'Initiation': undeclared identifier</div> <div>.\boost/asio/async_result.hpp(359): error C2065: 'initiation': undeclared identifier</div> <div>.\boost/asio/async_result.hpp(360): error C2065: 'token': undeclared identifier</div> <div>.\boost/asio/async_result.hpp(361): error C2065: 'Args': undeclared identifier</div> <div>.\boost/asio/async_result.hpp(361): warning C4346: 'boost::asio::detail::async_result_has_initiate_memfn::value': dependent name is not a type</div> <div>.\boost/asio/async_result.hpp(361): note: prefix with 'typename' to indicate a type</div> <div>.\boost/asio/async_result.hpp(361): error C2988: unrecognizable template declaration/definition</div> <div>.\boost/asio/async_result.hpp(361): error C2059: syntax error: '...'</div> <div>.\boost/asio/async_result.hpp(362): error C2143: syntax error: missing ';' before '{'</div> <div>.\boost/asio/async_result.hpp(362): error C2447: '{': missing function header (old-style formal list?)</div> <div>.\boost/asio/async_result.hpp(370): error C2039: 'completion_signature': is not a member of 'boost::asio'</div> <div>.\boost/asio/async_result.hpp(25): note: see declaration of 'boost::asio'</div> <div>.\boost/asio/async_result.hpp(370): error C2061: syntax error: identifier 'completion_signature'</div> <div>.\boost/asio/async_result.hpp(373): error C2065: 'Signature': undeclared identifier</div> <div>.\boost/asio/async_result.hpp(373): error C2923: 'boost::asio::detail::async_result_has_initiate_memfn': 'Signature' is not a valid template type argument for parameter 'Signature'</div> <div>.\boost/asio/async_result.hpp(374): error C2065: 'Signature': undeclared identifier</div> <div>.\boost/asio/async_result.hpp(375): error C2065: 'Initiation': undeclared identifier</div> <div>.\boost/asio/async_result.hpp(375): error C2065: 'initiation': undeclared identifier</div> <div>.\boost/asio/async_result.hpp(376): error C2065: 'token': undeclared identifier</div> <div>.\boost/asio/async_result.hpp(377): error C2065: 'Args': undeclared identifier</div> <div>.\boost/asio/async_result.hpp(377): warning C4346: 'boost::asio::detail::async_result_has_initiate_memfn::value': dependent name is not a type</div> <div>.\boost/asio/async_result.hpp(377): note: prefix with 'typename' to indicate a type</div> <div>.\boost/asio/async_result.hpp(377): error C2988: unrecognizable template declaration/definition</div> <div>.\boost/asio/async_result.hpp(377): error C2059: syntax error: '...'</div> <div>.\boost/asio/async_result.hpp(378): error C2143: syntax error: missing ';' before '{'</div> <div>.\boost/asio/async_result.hpp(378): error C2447: '{': missing function header (old-style formal list?)</div> <div>.\boost/asio/async_result.hpp(483): error C7568: argument list missing after assumed function template 'completion_handler_for'</div> <div>.\boost/asio/async_result.hpp(487): note: see reference to class template instantiation 'boost::asio::detail::initiation_archetype<Signature>' being compiled</div> <div>.\boost/asio/async_result.hpp(484): error C2061: syntax error: identifier 'CompletionHandler'</div> <div>.\boost/asio/async_result.hpp(491): error C2061: syntax error: identifier 'completion_signature'</div> <div>.\boost/asio/async_result.hpp(492): error C2062: type 'bool' unexpected</div> <div>.\boost/asio/async_result.hpp(493): error C2143: syntax error: missing ';' before '{'</div> <div>.\boost/asio/async_result.hpp(493): error C2447: '{': missing function header (old-style formal list?)</div> <div>.\boost/asio/post.hpp(56): error C2039: 'completion_token_for': is not a member of 'boost::asio'</div> <div>.\boost/asio/post.hpp(27): note: see declaration of 'boost::asio'</div> <div>.\boost/asio/post.hpp(56): error C2061: syntax error: identifier 'completion_token_for'</div> <div>.\boost/asio/post.hpp(56): error C2988: unrecognizable template declaration/definition</div> <div>.\boost/asio/post.hpp(56): error C2059: syntax error: '>'</div> <div>.\boost/asio/post.hpp(94): error C2039: 'completion_token_for': is not a member of 'boost::asio'</div> <div>.\boost/asio/post.hpp(27): note: see declaration of 'boost::asio'</div> <div>.\boost/asio/post.hpp(94): error C2061: syntax error: identifier 'completion_token_for'</div> <div>.\boost/asio/post.hpp(95): error C2988: unrecognizable template declaration/definition</div> <div>.\boost/asio/post.hpp(95): error C2059: syntax error: '>'</div> <div>.\boost/asio/post.hpp(107): error C2039: 'completion_token_for': is not a member of 'boost::asio'</div> <div>.\boost/asio/post.hpp(27): note: see declaration of 'boost::asio'</div> <div>.\boost/asio/post.hpp(107): error C2061: syntax error: identifier 'completion_token_for'</div> <div>.\boost/asio/post.hpp(108): error C2988: unrecognizable template declaration/definition</div> <div>.\boost/asio/post.hpp(108): error C2059: syntax error: '>'</div> <div>.\boost/asio/impl/post.hpp(81): error C2039: 'completion_token_for': is not a member of 'boost::asio'</div> <div>.\boost/asio/impl/post.hpp(26): note: see declaration of 'boost::asio'</div> <div>.\boost/asio/impl/post.hpp(81): error C2061: syntax error: identifier 'completion_token_for'</div> <div>.\boost/asio/impl/post.hpp(81): error C2988: unrecognizable template declaration/definition</div> <div>.\boost/asio/impl/post.hpp(81): error C2059: syntax error: '>'</div> <div>.\boost/asio/impl/post.hpp(84): error C2143: syntax error: missing ';' before '{'</div> <div>.\boost/asio/impl/post.hpp(84): error C2447: '{': missing function header (old-style formal list?)</div> <div>.\boost/asio/impl/post.hpp(90): error C2039: 'completion_token_for': is not a member of 'boost::asio'</div> <div>.\boost/asio/impl/post.hpp(26): note: see declaration of 'boost::asio'</div> <div>.\boost/asio/impl/post.hpp(90): error C2061: syntax error: identifier 'completion_token_for'</div> <div>.\boost/asio/impl/post.hpp(90): error C2988: unrecognizable template declaration/definition</div> <div>.\boost/asio/impl/post.hpp(90): error C2059: syntax error: '>'</div> <div>.\boost/asio/impl/post.hpp(94): error C2143: syntax error: missing ';' before '{'</div> <div>.\boost/asio/impl/post.hpp(94): error C2447: '{': missing function header (old-style formal list?)</div> <div>.\boost/asio/impl/post.hpp(100): error C2039: 'completion_token_for': is not a member of 'boost::asio'</div> <div>.\boost/asio/impl/post.hpp(26): note: see declaration of 'boost::asio'</div> <div>.\boost/asio/impl/post.hpp(100): error C2061: syntax error: identifier 'completion_token_for'</div> <div>.\boost/asio/impl/post.hpp(100): error C2988: unrecognizable template declaration/definition</div> <div>.\boost/asio/impl/post.hpp(100): error C2059: syntax error: '>'</div> <div>.\boost/asio/impl/post.hpp(105): error C2143: syntax error: missing ';' before '{'</div> <div>.\boost/asio/impl/post.hpp(105): error C2447: '{': missing function header (old-style formal list?)</div> <div>.\boost/asio/detail/buffer_sequence_adapter.hpp(106): error C2955: 'boost::asio::detail::buffer_sequence_adapter_base': use of class template requires template argument list</div> <div>.\boost/asio/detail/buffer_sequence_adapter.hpp(30): note: see declaration of 'boost::asio::detail::buffer_sequence_adapter_base'</div> <div>.\boost/asio/detail/buffer_sequence_adapter.hpp(208): note: see reference to class template instantiation 'boost::asio::detail::buffer_sequence_adapter<Buffer,Buffers>' being compiled</div> <div>.\boost/asio/detail/buffer_sequence_adapter.hpp(116): error C2143: syntax error: missing ';' before '*'</div> <div>.\boost/asio/detail/buffer_sequence_adapter.hpp(116): fatal error C1003: error count exceeds 100; stopping compilation</div> <div> </div> <div>Has anyone else encountered the same issues and how to resolve them?</div> <div> </div> <div>It appears that the macro BOOST_ASIO_CONCEPT is the one causing the issue. This macro seems to have the value “concept bool” which causes the complaint from the compiler.</div> <div> </div> <div>Kind regards,</div> <div>Leo</div> <div> </div></div></div></div> _______________________________________________<br> Boost-users mailing list<br> <a href="mailto:Boost-users@lists.boost.org" target="_blank">Boost-users@lists.boost.org</a><br> <a href="https://lists.boost.org/mailman/listinfo.cgi/boost-users" rel="noreferrer" target="_blank">https://lists.boost.org/mailman/listinfo.cgi/boost-users</a><br> </blockquote></div>