In file included from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/write.hpp:609:0, from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/buffered_write_stream.hpp:29, from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/buffered_stream.hpp:21, from /Users/itsme/gitprj/repos/boost-trunk/boost/asio.hpp:37, from testasiossl.cpp:1: /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp: In instantiation of 'void boost::asio::detail::write_op::operator()(const boost::system::error_code&, std::size_t, int) [with AsyncWriteStream = teststream; CompletionCondition = boost::asio::detail::transfer_all_t; WriteHandler = boost::asio::ssl::detail::io_op >; std::size_t = long unsigned int]': /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:585:3: required from 'void boost::asio::async_write(AsyncWriteStream&, const ConstBufferSequence&, WriteHandler&&) [with AsyncWriteStream = teststream; ConstBufferSequence = boost::asio::mutable_buffers_1; WriteHandler = boost::asio::ssl::detail::io_op >]' /Users/itsme/gitprj/repos/boost-trunk/boost/asio/ssl/detail/io.hpp:185:13: required from 'void boost::asio::ssl::detail::io_op::operator()(boost::system::error_code, std::size_t, int) [with Stream = teststream; Operation = boost::asio::ssl::detail::handshake_op; Handler = main(int, char**)::; std::size_t = long unsigned int]' /Users/itsme/gitprj/repos/boost-trunk/boost/asio/ssl/detail/io.hpp:322:3: required from 'void boost::asio::ssl::detail::async_io(Stream&, boost::asio::ssl::detail::stream_core&, const Operation&, Handler) [with Stream = teststream; Operation = boost::asio::ssl::detail::handshake_op; Handler = main(int, char**)::]' /Users/itsme/gitprj/repos/boost-trunk/boost/asio/ssl/stream.hpp:369:5: required from 'void boost::asio::ssl::stream::async_handshake(boost::asio::ssl::stream_base::handshake_type, HandshakeHandler&&) [with HandshakeHandler = main(int, char**)::; Stream = teststream]' testasiossl.cpp:76:6: required from here /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:250:11: error: no matching function for call to 'teststream::async_write_some(boost::asio::mutable_buffers_1, boost::asio::detail::write_op > >)' /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:250:11: note: candidate is: testasiossl.cpp:25:10: note: template void teststream::async_write_some(boost::asio::const_buffers_1, WriteHandler) testasiossl.cpp:25:10: note: template argument deduction/substitution failed: In file included from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/write.hpp:609:0, from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/buffered_write_stream.hpp:29, from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/buffered_stream.hpp:21, from /Users/itsme/gitprj/repos/boost-trunk/boost/asio.hpp:37, from testasiossl.cpp:1: /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:250:11: note: cannot convert 'boost::asio::buffer((*(const boost::asio::mutable_buffer*)(& boost::asio::operator+((*(const boost::asio::mutable_buffer*)(&((boost::asio::detail::write_op > >*)this)->boost::asio::detail::write_op > >::buffer_)), ((boost::asio::detail::write_op > >*)this)->boost::asio::detail::write_op > >::total_transferred_))), n)' (type 'boost::asio::mutable_buffers_1') to type 'boost::asio::const_buffers_1' /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp: In instantiation of 'void boost::asio::detail::write_op::operator()(const boost::system::error_code&, std::size_t, int) [with AsyncWriteStream = teststream; CompletionCondition = boost::asio::detail::transfer_all_t; WriteHandler = boost::asio::ssl::detail::io_op, boost::asio::detail::write_op, boost::asio::const_buffers_1, boost::asio::detail::transfer_all_t, main(int, char**):::: > >; std::size_t = long unsigned int]': /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:585:3: required from 'void boost::asio::async_write(AsyncWriteStream&, const ConstBufferSequence&, WriteHandler&&) [with AsyncWriteStream = teststream; ConstBufferSequence = boost::asio::mutable_buffers_1; WriteHandler = boost::asio::ssl::detail::io_op, boost::asio::detail::write_op, boost::asio::const_buffers_1, boost::asio::detail::transfer_all_t, main(int, char**):::: > >]' /Users/itsme/gitprj/repos/boost-trunk/boost/asio/ssl/detail/io.hpp:185:13: required from 'void boost::asio::ssl::detail::io_op::operator()(boost::system::error_code, std::size_t, int) [with Stream = teststream; Operation = boost::asio::ssl::detail::write_op; Handler = boost::asio::detail::write_op, boost::asio::const_buffers_1, boost::asio::detail::transfer_all_t, main(int, char**):::: >; std::size_t = long unsigned int]' /Users/itsme/gitprj/repos/boost-trunk/boost/asio/ssl/detail/io.hpp:322:3: required from 'void boost::asio::ssl::detail::async_io(Stream&, boost::asio::ssl::detail::stream_core&, const Operation&, Handler) [with Stream = teststream; Operation = boost::asio::ssl::detail::write_op; Handler = boost::asio::detail::write_op, boost::asio::const_buffers_1, boost::asio::detail::transfer_all_t, main(int, char**):::: >]' /Users/itsme/gitprj/repos/boost-trunk/boost/asio/ssl/stream.hpp:502:5: required from 'void boost::asio::ssl::stream::async_write_some(const ConstBufferSequence&, WriteHandler&&) [with ConstBufferSequence = boost::asio::const_buffers_1; WriteHandler = boost::asio::detail::write_op, boost::asio::const_buffers_1, boost::asio::detail::transfer_all_t, main(int, char**):::: >; Stream = teststream]' /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:322:11: required from 'void boost::asio::detail::write_op::operator()(const boost::system::error_code&, std::size_t, int) [with AsyncWriteStream = boost::asio::ssl::stream; CompletionCondition = boost::asio::detail::transfer_all_t; WriteHandler = main(int, char**)::::; std::size_t = long unsigned int]' /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:585:3: required from 'void boost::asio::async_write(AsyncWriteStream&, const ConstBufferSequence&, WriteHandler&&) [with AsyncWriteStream = boost::asio::ssl::stream; ConstBufferSequence = boost::asio::const_buffers_1; WriteHandler = main(int, char**)::::]' testasiossl.cpp:72:180: required from here /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:250:11: error: no matching function for call to 'teststream::async_write_some(boost::asio::mutable_buffers_1, boost::asio::detail::write_op, boost::asio::detail::write_op, boost::asio::const_buffers_1, boost::asio::detail::transfer_all_t, main(int, char**):::: > > >)' /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:250:11: note: candidate is: testasiossl.cpp:25:10: note: template void teststream::async_write_some(boost::asio::const_buffers_1, WriteHandler) testasiossl.cpp:25:10: note: template argument deduction/substitution failed: In file included from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/write.hpp:609:0, from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/buffered_write_stream.hpp:29, from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/buffered_stream.hpp:21, from /Users/itsme/gitprj/repos/boost-trunk/boost/asio.hpp:37, from testasiossl.cpp:1: /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:250:11: note: cannot convert 'boost::asio::buffer((*(const boost::asio::mutable_buffer*)(& boost::asio::operator+((*(const boost::asio::mutable_buffer*)(&((boost::asio::detail::write_op, boost::asio::detail::write_op, boost::asio::const_buffers_1, boost::asio::detail::transfer_all_t, main(int, char**):::: > > >*)this)->boost::asio::detail::write_op, boost::asio::detail::write_op, boost::asio::const_buffers_1, boost::asio::detail::transfer_all_t, main(int, char**):::: > > >::buffer_)), ((boost::asio::detail::write_op, boost::asio::detail::write_op, boost::asio::const_buffers_1, boost::asio::detail::transfer_all_t, main(int, char**):::: > > >*)this)->boost::asio::detail::write_op, boost::asio::detail::write_op, boost::asio::const_buffers_1, boost::asio::detail::transfer_all_t, main(int, char**):::: > > >::total_transferred_))), n)' (type 'boost::asio::mutable_buffers_1') to type 'boost::asio::const_buffers_1' /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp: In instantiation of 'void boost::asio::detail::write_op::operator()(const boost::system::error_code&, std::size_t, int) [with AsyncWriteStream = teststream; CompletionCondition = boost::asio::detail::transfer_all_t; WriteHandler = boost::asio::ssl::detail::io_op, boost::asio::detail::read_op, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, main(int, char**):::: > >; std::size_t = long unsigned int]': /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:585:3: required from 'void boost::asio::async_write(AsyncWriteStream&, const ConstBufferSequence&, WriteHandler&&) [with AsyncWriteStream = teststream; ConstBufferSequence = boost::asio::mutable_buffers_1; WriteHandler = boost::asio::ssl::detail::io_op, boost::asio::detail::read_op, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, main(int, char**):::: > >]' /Users/itsme/gitprj/repos/boost-trunk/boost/asio/ssl/detail/io.hpp:185:13: required from 'void boost::asio::ssl::detail::io_op::operator()(boost::system::error_code, std::size_t, int) [with Stream = teststream; Operation = boost::asio::ssl::detail::read_op; Handler = boost::asio::detail::read_op, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, main(int, char**):::: >; std::size_t = long unsigned int]' /Users/itsme/gitprj/repos/boost-trunk/boost/asio/ssl/detail/io.hpp:322:3: required from 'void boost::asio::ssl::detail::async_io(Stream&, boost::asio::ssl::detail::stream_core&, const Operation&, Handler) [with Stream = teststream; Operation = boost::asio::ssl::detail::read_op; Handler = boost::asio::detail::read_op, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, main(int, char**):::: >]' /Users/itsme/gitprj/repos/boost-trunk/boost/asio/ssl/stream.hpp:587:5: required from 'void boost::asio::ssl::stream::async_read_some(const MutableBufferSequence&, ReadHandler&&) [with MutableBufferSequence = boost::asio::mutable_buffers_1; ReadHandler = boost::asio::detail::read_op, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, main(int, char**):::: >; Stream = teststream]' /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/read.hpp:263:11: required from 'void boost::asio::detail::read_op::operator()(const boost::system::error_code&, std::size_t, int) [with AsyncReadStream = boost::asio::ssl::stream; CompletionCondition = boost::asio::detail::transfer_all_t; ReadHandler = main(int, char**)::::; std::size_t = long unsigned int]' /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/read.hpp:526:3: required from 'void boost::asio::async_read(AsyncReadStream&, const MutableBufferSequence&, ReadHandler&&) [with AsyncReadStream = boost::asio::ssl::stream; MutableBufferSequence = boost::asio::mutable_buffers_1; ReadHandler = main(int, char**)::::]' testasiossl.cpp:75:178: required from here /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:250:11: error: no matching function for call to 'teststream::async_write_some(boost::asio::mutable_buffers_1, boost::asio::detail::write_op, boost::asio::detail::read_op, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, main(int, char**):::: > > >)' /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:250:11: note: candidate is: testasiossl.cpp:25:10: note: template void teststream::async_write_some(boost::asio::const_buffers_1, WriteHandler) testasiossl.cpp:25:10: note: template argument deduction/substitution failed: In file included from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/write.hpp:609:0, from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/buffered_write_stream.hpp:29, from /Users/itsme/gitprj/repos/boost-trunk/boost/asio/buffered_stream.hpp:21, from /Users/itsme/gitprj/repos/boost-trunk/boost/asio.hpp:37, from testasiossl.cpp:1: /Users/itsme/gitprj/repos/boost-trunk/boost/asio/impl/write.hpp:250:11: note: cannot convert 'boost::asio::buffer((*(const boost::asio::mutable_buffer*)(& boost::asio::operator+((*(const boost::asio::mutable_buffer*)(&((boost::asio::detail::write_op, boost::asio::detail::read_op, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, main(int, char**):::: > > >*)this)->boost::asio::detail::write_op, boost::asio::detail::read_op, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, main(int, char**):::: > > >::buffer_)), ((boost::asio::detail::write_op, boost::asio::detail::read_op, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, main(int, char**):::: > > >*)this)->boost::asio::detail::write_op, boost::asio::detail::read_op, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, main(int, char**):::: > > >::total_transferred_))), n)' (type 'boost::asio::mutable_buffers_1') to type 'boost::asio::const_buffers_1'