Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- client.cpp: In function ‘void on_read(const error_code&, std::size_t)’:
- client.cpp:17:50: warning: unused parameter ‘bytes’ [-Wunused-parameter]
- void on_read(const error_code & err, std::size_t bytes) {
- ^~~~~
- client.cpp: In function ‘void on_write(const error_code&, std::size_t)’:
- client.cpp:25:51: error: no matching function for call to ‘async_read_until(boost::asio::posix::stream_descriptor&, boost::asio::const_buffers_1, char, void (&)(const error_code&, std::size_t))’
- async_read_until(in, buffer(line),'\n',on_read);
- ^
- In file included from /usr/include/boost/asio/read_until.hpp:921:0,
- from /usr/include/boost/asio.hpp:91,
- from client.cpp:1:
- /usr/include/boost/asio/impl/read_until.hpp:498:1: note: candidate: template<class AsyncReadStream, class Allocator, class ReadHandler> typename boost::asio::async_result<typename boost::asio::handler_type<WriteHandler, void(boost::system::error_code, long unsigned int)>::type>::type boost::asio::async_read_until(AsyncReadStream&, boost::asio::basic_streambuf<Allocator>&, char, ReadHandler&&)
- async_read_until(AsyncReadStream& s,
- ^~~~~~~~~~~~~~~~
- /usr/include/boost/asio/impl/read_until.hpp:498:1: note: template argument deduction/substitution failed:
- client.cpp:25:51: note: ‘boost::asio::const_buffers_1’ is not derived from ‘boost::asio::basic_streambuf<Allocator>’
- async_read_until(in, buffer(line),'\n',on_read);
- ^
- In file included from /usr/include/boost/asio/read_until.hpp:921:0,
- from /usr/include/boost/asio.hpp:91,
- from client.cpp:1:
- /usr/include/boost/asio/impl/read_until.hpp:701:1: note: candidate: template<class AsyncReadStream, class Allocator, class ReadHandler> typename boost::asio::async_result<typename boost::asio::handler_type<WriteHandler, void(boost::system::error_code, long unsigned int)>::type>::type boost::asio::async_read_until(AsyncReadStream&, boost::asio::basic_streambuf<Allocator>&, const string&, ReadHandler&&)
- async_read_until(AsyncReadStream& s,
- ^~~~~~~~~~~~~~~~
- /usr/include/boost/asio/impl/read_until.hpp:701:1: note: template argument deduction/substitution failed:
- client.cpp:25:51: note: ‘boost::asio::const_buffers_1’ is not derived from ‘boost::asio::basic_streambuf<Allocator>’
- async_read_until(in, buffer(line),'\n',on_read);
- ^
- In file included from /usr/include/boost/asio/read_until.hpp:921:0,
- from /usr/include/boost/asio.hpp:91,
- from client.cpp:1:
- /usr/include/boost/asio/impl/read_until.hpp:913:1: note: candidate: template<class AsyncReadStream, class Allocator, class ReadHandler> typename boost::asio::async_result<typename boost::asio::handler_type<WriteHandler, void(boost::system::error_code, long unsigned int)>::type>::type boost::asio::async_read_until(AsyncReadStream&, boost::asio::basic_streambuf<Allocator>&, const regex&, ReadHandler&&)
- async_read_until(AsyncReadStream& s,
- ^~~~~~~~~~~~~~~~
- /usr/include/boost/asio/impl/read_until.hpp:913:1: note: template argument deduction/substitution failed:
- client.cpp:25:51: note: ‘boost::asio::const_buffers_1’ is not derived from ‘boost::asio::basic_streambuf<Allocator>’
- async_read_until(in, buffer(line),'\n',on_read);
- ^
- In file included from /usr/include/boost/asio/read_until.hpp:921:0,
- from /usr/include/boost/asio.hpp:91,
- from client.cpp:1:
- /usr/include/boost/asio/impl/read_until.hpp:1122:1: note: candidate: template<class AsyncReadStream, class Allocator, class MatchCondition, class ReadHandler> typename boost::asio::async_result<typename boost::asio::handler_type<WriteHandler, void(boost::system::error_code, long unsigned int)>::type>::type boost::asio::async_read_until(AsyncReadStream&, boost::asio::basic_streambuf<Allocator>&, MatchCondition, ReadHandler&&, typename std::enable_if<boost::asio::is_match_condition<MatchCondition>::value>::type*)
- async_read_until(AsyncReadStream& s,
- ^~~~~~~~~~~~~~~~
- /usr/include/boost/asio/impl/read_until.hpp:1122:1: note: template argument deduction/substitution failed:
- client.cpp:25:51: note: ‘boost::asio::const_buffers_1’ is not derived from ‘boost::asio::basic_streambuf<Allocator>’
- async_read_until(in, buffer(line),'\n',on_read);
- ^
- client.cpp:23:34: warning: unused parameter ‘err’ [-Wunused-parameter]
- void on_write(const error_code & err, std::size_t bytes) {
- ^~~
- client.cpp:23:51: warning: unused parameter ‘bytes’ [-Wunused-parameter]
- void on_write(const error_code & err, std::size_t bytes) {
- ^~~~~
- client.cpp: In function ‘int main()’:
- client.cpp:29:51: error: no matching function for call to ‘async_read_until(boost::asio::posix::stream_descriptor&, boost::asio::const_buffers_1, char, void (&)(const error_code&, std::size_t))’
- async_read_until(in, buffer(line),'\n',on_read);
- ^
- In file included from /usr/include/boost/asio/read_until.hpp:921:0,
- from /usr/include/boost/asio.hpp:91,
- from client.cpp:1:
- /usr/include/boost/asio/impl/read_until.hpp:498:1: note: candidate: template<class AsyncReadStream, class Allocator, class ReadHandler> typename boost::asio::async_result<typename boost::asio::handler_type<WriteHandler, void(boost::system::error_code, long unsigned int)>::type>::type boost::asio::async_read_until(AsyncReadStream&, boost::asio::basic_streambuf<Allocator>&, char, ReadHandler&&)
- async_read_until(AsyncReadStream& s,
- ^~~~~~~~~~~~~~~~
- /usr/include/boost/asio/impl/read_until.hpp:498:1: note: template argument deduction/substitution failed:
- client.cpp:29:51: note: ‘boost::asio::const_buffers_1’ is not derived from ‘boost::asio::basic_streambuf<Allocator>’
- async_read_until(in, buffer(line),'\n',on_read);
- ^
- In file included from /usr/include/boost/asio/read_until.hpp:921:0,
- from /usr/include/boost/asio.hpp:91,
- from client.cpp:1:
- /usr/include/boost/asio/impl/read_until.hpp:701:1: note: candidate: template<class AsyncReadStream, class Allocator, class ReadHandler> typename boost::asio::async_result<typename boost::asio::handler_type<WriteHandler, void(boost::system::error_code, long unsigned int)>::type>::type boost::asio::async_read_until(AsyncReadStream&, boost::asio::basic_streambuf<Allocator>&, const string&, ReadHandler&&)
- async_read_until(AsyncReadStream& s,
- ^~~~~~~~~~~~~~~~
- /usr/include/boost/asio/impl/read_until.hpp:701:1: note: template argument deduction/substitution failed:
- client.cpp:29:51: note: ‘boost::asio::const_buffers_1’ is not derived from ‘boost::asio::basic_streambuf<Allocator>’
- async_read_until(in, buffer(line),'\n',on_read);
- ^
- In file included from /usr/include/boost/asio/read_until.hpp:921:0,
- from /usr/include/boost/asio.hpp:91,
- from client.cpp:1:
- /usr/include/boost/asio/impl/read_until.hpp:913:1: note: candidate: template<class AsyncReadStream, class Allocator, class ReadHandler> typename boost::asio::async_result<typename boost::asio::handler_type<WriteHandler, void(boost::system::error_code, long unsigned int)>::type>::type boost::asio::async_read_until(AsyncReadStream&, boost::asio::basic_streambuf<Allocator>&, const regex&, ReadHandler&&)
- async_read_until(AsyncReadStream& s,
- ^~~~~~~~~~~~~~~~
- /usr/include/boost/asio/impl/read_until.hpp:913:1: note: template argument deduction/substitution failed:
- client.cpp:29:51: note: ‘boost::asio::const_buffers_1’ is not derived from ‘boost::asio::basic_streambuf<Allocator>’
- async_read_until(in, buffer(line),'\n',on_read);
- ^
- In file included from /usr/include/boost/asio/read_until.hpp:921:0,
- from /usr/include/boost/asio.hpp:91,
- from client.cpp:1:
- /usr/include/boost/asio/impl/read_until.hpp:1122:1: note: candidate: template<class AsyncReadStream, class Allocator, class MatchCondition, class ReadHandler> typename boost::asio::async_result<typename boost::asio::handler_type<WriteHandler, void(boost::system::error_code, long unsigned int)>::type>::type boost::asio::async_read_until(AsyncReadStream&, boost::asio::basic_streambuf<Allocator>&, MatchCondition, ReadHandler&&, typename std::enable_if<boost::asio::is_match_condition<MatchCondition>::value>::type*)
- async_read_until(AsyncReadStream& s,
- ^~~~~~~~~~~~~~~~
- /usr/include/boost/asio/impl/read_until.hpp:1122:1: note: template argument deduction/substitution failed:
- client.cpp:29:51: note: ‘boost::asio::const_buffers_1’ is not derived from ‘boost::asio::basic_streambuf<Allocator>’
- async_read_until(in, buffer(line),'\n',on_read);
- ^
Add Comment
Please, Sign In to add comment