In file included from testasiossl.cpp:1: In file included from /Users/itsme/gitprj/repos/boost-trunk/boost/asio.hpp:37: In file included from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/buffered_stream.hpp:21: In file included from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/buffered_write_stream.hpp:29: In file included from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/write.hpp:609: /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:250:19: error: no matching member function for call to 'async_write_some' stream_.async_write_some( ~~~~~~~~^~~~~~~~~~~~~~~~ /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:585:3: note: in instantiation of member function 'boost::asio::detail::write_op, boost::asio::detail::write_op, boost::asio::const_buffers_1, boost::asio::detail::transfer_all_t, >> >::operator()' requested here detail::make_write_op( ^ /Users/itsme/gitprj/repos/boost-trunk/boost/asio/ssl/detail/io.hpp:185:13: note: in instantiation of function template specialization 'boost::asio::async_write, boost::asio::detail::write_op, boost::asio::const_buffers_1, boost::asio::detail::transfer_all_t, >> >' requested here boost::asio::async_write(next_layer_, ^ /Users/itsme/gitprj/repos/boost-trunk/boost/asio/ssl/detail/io.hpp:322:3: note: in instantiation of member function 'boost::asio::ssl::detail::io_op, boost::asio::detail::write_op, boost::asio::const_buffers_1, boost::asio::detail::transfer_all_t, > >::operator()' requested here io_op( ^ /Users/itsme/gitprj/repos/boost-trunk/boost/asio/ssl/stream.hpp:502:5: note: in instantiation of function template specialization 'boost::asio::ssl::detail::async_io, boost::asio::detail::write_op, boost::asio::const_buffers_1, boost::asio::detail::transfer_all_t, > >' requested here detail::async_io(next_layer_, core_, ^ /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:322:19: note: in instantiation of function template specialization 'boost::asio::ssl::stream::async_write_some, boost::asio::const_buffers_1, boost::asio::detail::transfer_all_t, > >' requested here stream_.async_write_some( ^ /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:585:3: note: in instantiation of member function 'boost::asio::detail::write_op, boost::asio::const_buffers_1, boost::asio::detail::transfer_all_t, >::operator()' requested here detail::make_write_op( ^ testasiossl.cpp:68:9: note: in instantiation of function template specialization 'boost::asio::async_write, boost::asio::const_buffers_1, >' requested here boost::asio::async_write(sock, boost::asio::buffer("test123", 7), [](const boost::system::error_code& error, std::size_t n) { std::cout << "xmitted " << n << " bytes\n"; }); ^ testasiossl.cpp:21:10: note: candidate function [with WriteHandler = boost::asio::detail::write_op, boost::asio::detail::write_op, boost::asio::const_buffers_1, boost::asio::detail::transfer_all_t, >>>] not viable: no known conversion from 'boost::asio::mutable_buffers_1' to 'boost::asio::const_buffers_1' for 1st argument; void async_write_some(boost::asio::const_buffers_1 bufs, WriteHandler handler) ^ In file included from testasiossl.cpp:1: In file included from /Users/itsme/gitprj/repos/boost-trunk/boost/asio.hpp:37: In file included from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/buffered_stream.hpp:21: In file included from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/buffered_write_stream.hpp:29: In file included from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/write.hpp:609: /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:250:19: error: no matching member function for call to 'async_write_some' stream_.async_write_some( ~~~~~~~~^~~~~~~~~~~~~~~~ /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:585:3: note: in instantiation of member function 'boost::asio::detail::write_op, boost::asio::detail::read_op, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, >> >::operator()' requested here detail::make_write_op( ^ /Users/itsme/gitprj/repos/boost-trunk/boost/asio/ssl/detail/io.hpp:185:13: note: in instantiation of function template specialization 'boost::asio::async_write, boost::asio::detail::read_op, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, >> >' requested here boost::asio::async_write(next_layer_, ^ /Users/itsme/gitprj/repos/boost-trunk/boost/asio/ssl/detail/io.hpp:322:3: note: in instantiation of member function 'boost::asio::ssl::detail::io_op, boost::asio::detail::read_op, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, > >::operator()' requested here io_op( ^ /Users/itsme/gitprj/repos/boost-trunk/boost/asio/ssl/stream.hpp:587:5: note: in instantiation of function template specialization 'boost::asio::ssl::detail::async_io, boost::asio::detail::read_op, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, > >' requested here detail::async_io(next_layer_, core_, ^ /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/read.hpp:263:19: note: in instantiation of function template specialization 'boost::asio::ssl::stream::async_read_some, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, > >' requested here stream_.async_read_some( ^ /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/read.hpp:526:3: note: in instantiation of member function 'boost::asio::detail::read_op, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, >::operator()' requested here detail::make_read_op( ^ testasiossl.cpp:71:9: note: in instantiation of function template specialization 'boost::asio::async_read, boost::asio::mutable_buffers_1, >' requested here boost::asio::async_read(sock, boost::asio::buffer(rcv, 16), [rcv](const boost::system::error_code& error, std::size_t n) { std::cout << "received " << n << " bytes\n"; }); ^ testasiossl.cpp:21:10: note: candidate function [with WriteHandler = boost::asio::detail::write_op, boost::asio::detail::read_op, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, >>>] not viable: no known conversion from 'boost::asio::mutable_buffers_1' to 'boost::asio::const_buffers_1' for 1st argument; void async_write_some(boost::asio::const_buffers_1 bufs, WriteHandler handler) ^ In file included from testasiossl.cpp:1: In file included from /Users/itsme/gitprj/repos/boost-trunk/boost/asio.hpp:37: In file included from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/buffered_stream.hpp:21: In file included from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/buffered_write_stream.hpp:29: In file included from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/write.hpp:609: /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:250:19: error: no matching member function for call to 'async_write_some' stream_.async_write_some( ~~~~~~~~^~~~~~~~~~~~~~~~ /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:585:3: note: in instantiation of member function 'boost::asio::detail::write_op> >::operator()' requested here detail::make_write_op( ^ /Users/itsme/gitprj/repos/boost-trunk/boost/asio/ssl/detail/io.hpp:185:13: note: in instantiation of function template specialization 'boost::asio::async_write> >' requested here boost::asio::async_write(next_layer_, ^ /Users/itsme/gitprj/repos/boost-trunk/boost/asio/ssl/detail/io.hpp:322:3: note: in instantiation of member function 'boost::asio::ssl::detail::io_op >::operator()' requested here io_op( ^ /Users/itsme/gitprj/repos/boost-trunk/boost/asio/ssl/stream.hpp:369:5: note: in instantiation of function template specialization 'boost::asio::ssl::detail::async_io >' requested here detail::async_io(next_layer_, core_, detail::handshake_op(type), ^ testasiossl.cpp:66:10: note: in instantiation of function template specialization 'boost::asio::ssl::stream::async_handshake< >' requested here sock.async_handshake(ssl_socket::client, [&sock](const boost::system::error_code& error) { ^ testasiossl.cpp:21:10: note: candidate function [with WriteHandler = boost::asio::detail::write_op>>] not viable: no known conversion from 'boost::asio::mutable_buffers_1' to 'boost::asio::const_buffers_1' for 1st argument; void async_write_some(boost::asio::const_buffers_1 bufs, WriteHandler handler) ^