Comments (5)
warning C4996: 'std::codecvt_utf8<wchar_t,1114111,(std::codecvt_mode)0>': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
1> C:\apps\MVS16117\VC\Tools\MSVC\14.29.30133\include\codecvt(34): note: see declaration of 'std::codecvt_utf8'
1>: warning C4996: 'std::wstring_convert<std::codecvt_utf8<wchar_t,1114111,(std::codecvt_mode)0>,wchar_t,std::allocator<wchar_t>,std::allocator>': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
1> C:\apps\MVS16117\VC\Tools\MSVC\14.29.30133\include\xlocbuf(302): note: see declaration of 'std::wstring_convert'
1>: warning C4996: 'std::wstring_convert<std::codecvt_utf8<wchar_t,1114111,(std::codecvt_mode)0>,wchar_t,std::allocator<wchar_t>,std::allocator>::wstring_convert': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
1> - Processing
1>C:\apps\MVS16117\VC\Tools\MSVC\14.29.30133\include\xutility(151): error C4239: nonstandard extension used: 'argument': conversion from '_Ty' to 'ExecutionContext &'
1> with
1> [
1> _Ty=std::reference_wrapperboost::asio::io_service
1> ]
1> and
1> [
1> ExecutionContext=std::reference_wrapperboost::asio::io_service
1> ]
1> C:\apps\MVS16117\VC\Tools\MSVC\14.29.30133\include\xutility(151): note: A non-const reference may only be bound to an lvalue
1>: warning C4996: 'std::codecvt_utf8<wchar_t,1114111,(std::codecvt_mode)0>': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
1> C:\apps\MVS16117\VC\Tools\MSVC\14.29.30133\include\codecvt(34): note: see declaration of 'std::codecvt_utf8'
1>: warning C4996: 'std::wstring_convert<std::codecvt_utf8<wchar_t,1114111,(std::codecvt_mode)0>,wchar_t,std::allocator<wchar_t>,std::allocator>': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
1> C:\apps\MVS16117\VC\Tools\MSVC\14.29.30133\include\xlocbuf(302): note: see declaration of 'std::wstring_convert'
1>: warning C4996: 'std::wstring_convert<std::codecvt_utf8<wchar_t,1114111,(std::codecvt_mode)0>,wchar_t,std::allocator<wchar_t>,std::allocator>::wstring_convert': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
1>: warning C4996: 'std::wstring_convert<std::codecvt_utf8<wchar_t,1114111,(std::codecvt_mode)0>,wchar_t,std::allocator<wchar_t>,std::allocator>::to_bytes': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
1>C:\apps\MVS16117\VC\Tools\MSVC\14.29.30133\include\xutility(151): error C4239: nonstandard extension used: 'argument': conversion from '_Ty' to 'ExecutionContext &'
1> with
1> [
1> _Ty=std::reference_wrapperboost::asio::io_service
1> ]
1> and
1> [
1> ExecutionContext=std::reference_wrapperboost::asio::io_service
1> ]
1> C:\apps\MVS16117\VC\Tools\MSVC\14.29.30133\include\xutility(151): note: A non-const reference may only be bound to an lvalue
1> C:\apps\MVS16117\VC\Tools\MSVC\14.29.30133\include\memory(2021): note: see reference to function template instantiation 'void std::_Construct_in_place<_Ty,std::reference_wrapperboost::asio::io_service>(_Ty &,std::reference_wrapperboost::asio::io_service &&) noexcept(false)' being compiled
1> with
1> [
1> _Ty=boost::asio::ip::tcp::socket
1> ]
1> C:\apps\MVS16117\VC\Tools\MSVC\14.29.30133\include\memory(2747): note: see reference to function template instantiation 'std::_Ref_count_obj2<_Ty>::_Ref_count_obj2<std::reference_wrapperboost::asio::io_service>(std::reference_wrapperboost::asio::io_service &&)' being compiled
1> with
1> [
1> _Ty=boost::asio::ip::tcp::socket
1> ]
1> C:\apps\MVS16117\VC\Tools\MSVC\14.29.30133\include\memory(2748): note: see reference to function template instantiation 'std::_Ref_count_obj2<_Ty>::_Ref_count_obj2<std::reference_wrapperboost::asio::io_service>(std::reference_wrapperboost::asio::io_service &&)' being compiled
1> with
1> [
1> _Ty=boost::asio::ip::tcp::socket
1> ]
1> C:websocketpp\websocketpp/transport/asio/security/none.hpp(172): note: see reference to function template instantiation 'std::shared_ptrwebsocketpp::transport::asio::basic_socket::connection::socket_type std::make_shared<boost::asio::ip::tcp::socket,std::reference_wrapperboost::asio::io_service>(std::reference_wrapperboost::asio::io_service &&)' being compiled
1>\boost_1_76_0\boost/asio/detail/io_object_impl.hpp(59): error C2039: 'get_executor': is not a member of 'std::reference_wrapperboost::asio::io_service'
1> C:\apps\MVS16117\VC\Tools\MSVC\14.29.30133\include\type_traits(1914): note: see declaration of 'std::reference_wrapperboost::asio::io_service'
1> C:boost_1_76_0\boost/asio/basic_socket.hpp(133): note: see reference to function template instantiation 'boost::asio::detail::io_object_impl<boost::asio::detail::win_iocp_socket_service,Executor>::io_object_impl(int,int,ExecutionContext &)' being compiled
1> with
1> [
1> Protocol=boost::asio::ip::tcp,
1>: warning C4996: 'std::wstring_convert<std::codecvt_utf8<wchar_t,1114111,(std::codecvt_mode)0>,wchar_t,std::allocator<wchar_t>,std::allocator>::to_bytes': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
1>
1> C:\apps\MVS16117\VC\Tools\MSVC\14.29.30133\include\memory(2021): note: see reference to function template instantiation 'void std::_Construct_in_place<_Ty,std::reference_wrapperboost::asio::io_service>(_Ty &,std::reference_wrapperboost::asio::io_service &&) noexcept(false)' being compiled
1> with
1> [
1> _Ty=boost::asio::ip::tcp::socket
1> ]
1> C:\apps\MVS16117\VC\Tools\MSVC\14.29.30133\include\memory(2747): note: see reference to function template instantiation 'std::_Ref_count_obj2<_Ty>::_Ref_count_obj2<std::reference_wrapperboost::asio::io_service>(std::reference_wrapperboost::asio::io_service &&)' being compiled
1> with
1> [
1> _Ty=boost::asio::ip::tcp::socket
1> ]
1> C:\apps\MVS16117\VC\Tools\MSVC\14.29.30133\include\memory(2748): note: see reference to function template instantiation 'std::_Ref_count_obj2<_Ty>::_Ref_count_obj2<std::reference_wrapperboost::asio::io_service>(std::reference_wrapperboost::asio::io_service &&)' being compiled
1> with
1> [
1> _Ty=boost::asio::ip::tcp::socket
1> ]
1> \websocketpp\websocketpp/transport/asio/security/none.hpp(172): note: see reference to function template instantiation 'std::shared_ptrwebsocketpp::transport::asio::basic_socket::connection::socket_type std::make_shared<boost::asio::ip::tcp::socket,std::reference_wrapperboost::asio::io_service>(std::reference_wrapperboost::asio::io_service &&)' being compiled
1>C:\boost_1_76_0\boost/asio/detail/io_object_impl.hpp(59): error C2039: 'get_executor': is not a member of 'std::reference_wrapperboost::asio::io_service'
1> C:\apps\MVS16117\VC\Tools\MSVC\14.29.30133\include\type_traits(1914): note: see declaration of 'std::reference_wrapperboost::asio::io_service'
1> boost_1_76_0\boost/asio/ip/basic_resolver.hpp(127): note: see reference to function template instantiation 'boost::asio::detail::io_object_impl<boost::asio::detail::resolver_service,Executor>::io_object_impl(int,int,ExecutionContext &)' being compiled
1> with
1> [
1> InternetProtocol=boost::asio::ip::tcp,
1> Executor=boost::asio::any_io_executor,
1> ExecutionContext=std::reference_wrapperboost::asio::io_service
1> ]
1> boost_1_76_0\boost/asio/ip/basic_resolver.hpp(126): note: see reference to function template instantiation 'boost::asio::detail::io_object_impl<boost::asio::detail::resolver_service,Executor>::io_object_impl(int,int,ExecutionContext &)' being compiled
1> with
1> [
1> InternetProtocol=boost::asio::ip::tcp,
1> Executor=boost::asio::any_io_executor,
1> ExecutionContext=std::reference_wrapperboost::asio::io_service
1> ]
1> C:\apps\MVS16117\VC\Tools\MSVC\14.29.30133\include\xutility(151): note: see reference to function template instantiation 'boost::asio::ip::basic_resolverboost::asio::ip::tcp,boost::asio::any_io_executor::basic_resolver<_Ty>(ExecutionContext &,int)' being compiled
1> with
1> [
1> _Ty=std::reference_wrapperboost::asio::io_service,
1> ExecutionContext=std::reference_wrapperboost::asio::io_service
1> ]
1> C:\apps\MVS16117\VC\Tools\MSVC\14.29.30133\include\xutility(158): note: see reference to function template instantiation 'boost::asio::ip::basic_resolverboost::asio::ip::tcp,boost::asio::any_io_executor::basic_resolver<_Ty>(ExecutionContext &,int)' being compiled
1> with
1> [
1> _Ty=std::reference_wrapperboost::asio::io_service,
1> ExecutionContext=std::reference_wrapperboost::asio::io_service
1> ]
1> C:\apps\MVS16117\VC\Tools\MSVC\14.29.30133\include\memory(2021): note: see reference to function template instantiation 'void std::_Construct_in_place<_Ty,std::reference_wrapperboost::asio::io_service>(_Ty &,std::reference_wrapperboost::asio::io_service &&) noexcept(false)' being compiled
1> with
1> [
1> _Ty=boost::asio::ip::tcp::resolver
1> ]
from websocketpp.
Sorry, I check that I used 0.8.1 instead of 0.8.2
from websocketpp.
Hello, sorry to bother you, can Boost 1.76 + Websocketpp 0.8.2 work properly? When I tested it, I found that Websocketpp does not seem to work properly in Boost 1.74+, and it seems that there are some asio-related interface changes.
from websocketpp.
For me, Boost 1.76 + Websocketpp 0.8.2 work correctly. You may have a try of 1.76 or websocketpp 0.8.1
from websocketpp.
For me, Boost 1.76 + Websocketpp 0.8.2 work correctly. You may have a try of 1.76 or websocketpp 0.8.1
I will try it, thanks.
from websocketpp.
Related Issues (20)
- Process multiple websocket clients in one thread
- memory leak
- how to build in centos7.9? HOT 1
- handle_read_http_response error
- websocketpp how to upload a PDF file to server
- Can't compile the echo_client example
- Help getting basic TLS example to work
- Build error
- Build issues on C++20 (around constructor syntax of templated structs)
- How to add some custom key to the http headers HOT 1
- 严重性 代码 说明 项目 文件 行 禁止显示状态 错误(活动) E0283 不允许使用限定名
- How to use websocketpp to process HTTPS requests?
- May I ask how websocketpp uses domain sockets for communication? HOT 1
- asio/connection.hpp 文件的第 318 行遇到了一个类型不匹配的问题,编译出错 HOT 1
- 服务端150路并发,2m码率的音视频数据发送,造成ping消息延时发送8秒
- Cannot reinit asio after .dll shutdown
- Connect one wss succefully but another failed
- Runs fine on Linux, crash on Windows due to boost invalid memory access issue HOT 2
- How can i turn off utf8_validator for incoming ANSI text message
- request server by ip and set host in header
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from websocketpp.