Advertisement
Guest User

Untitled

a guest
May 10th, 2021
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.44 KB | None | 0 0
  1. slithercc_boost.cpp: In function ‘int main(int, const char**)’:
  2. slithercc_boost.cpp:237:71: error: use of deleted function ‘boost::beast::websocket::stream< <template-parameter-1-1>, <anonymous> >& boost::beast::websocket::stream< <template-parameter-1-1>, <anonymous> >::operator=(boost::beast::websocket::stream< <template-parameter-1-1>, <anonymous> >&&) [with NextLayer = boost::asio::basic_stream_socket<boost::asio::ip::tcp>; bool deflateSupported = true]’
  3. 237 | ws = connect_ws(config.test_server.c_str(), skin_config, test_server);
  4. | ^
  5. In file included from /usr/include/boost/beast/websocket.hpp:18,
  6. from websocket_boost.h:16,
  7. from slithercc_boost.cpp:1:
  8. /usr/include/boost/beast/websocket/stream.hpp:195:13: note: declared here
  9. 195 | stream& operator=(stream&&) = delete;
  10. | ^~~~~~~~
  11. slithercc_boost.cpp:262:53: error: use of deleted function ‘boost::beast::websocket::stream< <template-parameter-1-1>, <anonymous> >& boost::beast::websocket::stream< <template-parameter-1-1>, <anonymous> >::operator=(boost::beast::websocket::stream< <template-parameter-1-1>, <anonymous> >&&) [with NextLayer = boost::asio::basic_stream_socket<boost::asio::ip::tcp>; bool deflateSupported = true]’
  12. 262 | ws = connect_ws(config.server.c_str(), skin_config);
  13. | ^
  14. In file included from /usr/include/boost/beast/websocket.hpp:18,
  15. from websocket_boost.h:16,
  16. from slithercc_boost.cpp:1:
  17. /usr/include/boost/beast/websocket/stream.hpp:195:13: note: declared here
  18. 195 | stream& operator=(stream&&) = delete;
  19. | ^~~~~~~~
  20. make: *** [Makefile:31: slithercc_boost.o] Error 1
  21. websocket_boost.cpp: In function ‘size_t ws_read(boost::beast::websocket::stream<boost::asio::basic_stream_socket<boost::asio::ip::tcp> >&, ws_buf_t&)’:
  22. websocket_boost.cpp:30:45: error: ‘buf’ is not a constant expression
  23. 30 | boost::beast::flat_static_buffer<buf.size()> buffer;
  24. | ^
  25. websocket_boost.cpp:30:43: note: in template argument for type ‘long unsigned int’
  26. 30 | boost::beast::flat_static_buffer<buf.size()> buffer;
  27. | ~~~~~~~~^~
  28. websocket_boost.cpp:41:28: error: request for member ‘data’ in ‘buffer’, which is of non-class type ‘int’
  29. 41 | memcpy(buf.data(), buffer.data().data(), size);
  30. | ^~~~
  31. In file included from /usr/include/boost/beast/websocket/stream.hpp:2644,
  32. from /usr/include/boost/beast/websocket.hpp:18,
  33. from websocket_boost.h:16,
  34. from websocket_boost.cpp:1:
  35. /usr/include/boost/beast/websocket/impl/read.hpp: In instantiation of ‘std::size_t boost::beast::websocket::stream< <template-parameter-1-1>, <anonymous> >::read(DynamicBuffer&) [with DynamicBuffer = int; NextLayer = boost::asio::basic_stream_socket<boost::asio::ip::tcp>; bool deflateSupported = true; std::size_t = long unsigned int]’:
  36. websocket_boost.cpp:34:24: required from here
  37. /usr/include/boost/beast/websocket/impl/read.hpp:875:48: error: static assertion failed: DynamicBuffer type requirements not met
  38. 875 | net::is_dynamic_buffer<DynamicBuffer>::value,
  39. | ^~~~~
  40. make: *** [Makefile:31: websocket_boost.o] Error 1
  41. connect.cpp: In function ‘bool connect_ws_ptc(boost::beast::websocket::stream<boost::asio::basic_stream_socket<boost::asio::ip::tcp> >&, const char*)’:
  42. connect.cpp:179:6: error: ‘class boost::beast::websocket::stream<boost::asio::basic_stream_socket<boost::asio::ip::tcp> >’ has no member named ‘handshake_ex’; did you mean ‘template<class> class boost::beast::websocket::stream<boost::asio::basic_stream_socket<boost::asio::ip::tcp> >::handshake_op’? (not accessible from this context)
  43. 179 | ws.handshake_ex(res, host, target, ws_handshake_req_modify);
  44. | ^~~~~~~~~~~~
  45. In file included from /usr/include/boost/beast/websocket.hpp:18,
  46. from websocket_boost.h:16,
  47. from connect.cpp:1:
  48. /usr/include/boost/beast/websocket/stream.hpp:2543:35: note: declared private here
  49. 2543 | template<class> class handshake_op;
  50. | ^~~~~~~~~~~~
  51. connect.cpp: In function ‘bool connect_ws(boost::beast::websocket::stream<boost::asio::basic_stream_socket<boost::asio::ip::tcp> >&, const char*, const skin_config_t&, bool)’:
  52. connect.cpp:220:6: error: ‘class boost::beast::websocket::stream<boost::asio::basic_stream_socket<boost::asio::ip::tcp> >’ has no member named ‘handshake_ex’; did you mean ‘template<class> class boost::beast::websocket::stream<boost::asio::basic_stream_socket<boost::asio::ip::tcp> >::handshake_op’? (not accessible from this context)
  53. 220 | ws.handshake_ex(res, host, target, ws_handshake_req_modify);
  54. | ^~~~~~~~~~~~
  55. In file included from /usr/include/boost/beast/websocket.hpp:18,
  56. from websocket_boost.h:16,
  57. from connect.cpp:1:
  58. /usr/include/boost/beast/websocket/stream.hpp:2543:35: note: declared private here
  59. 2543 | template<class> class handshake_op;
  60. | ^~~~~~~~~~~~
  61. make: *** [Makefile:31: connect.o] Error 1
  62. make: Target 'all' not remade because of errors.
  63.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement