forked from boostorg/beast
Tidy up warnings and deprecated usage:
fix #1290 * BOOST_ASIO_NO_DEPRECATED=1 is now set * Fix various warnings from the Boost regression test matrix * Fix a bug in advanced servers when checking for a timeout
This commit is contained in:
1 parent
c0e5d1bd76
commit
5bff4ed8ab
23 files changed
+103
-60
No files matched your search
@@ -22,7 +22,6 @@ namespace doc_core_snippets {
|
||||
|
||||
void fxx()
|
||||
{
|
||||
|
||||
//[snippet_core_1b
|
||||
//
|
||||
using namespace boost::beast;
|
||||
@@ -35,8 +34,9 @@ error_code ec;
|
||||
boost::asio::ip::tcp::socket sock{ioc};
|
||||
|
||||
//]
|
||||
boost::ignore_unused(ec);
|
||||
|
||||
{
|
||||
{
|
||||
//[snippet_core_2
|
||||
|
||||
char const* const host = "www.example.com";
|
||||
@@ -49,10 +49,12 @@ boost::asio::connect(stream, results.begin(), results.end());
|
||||
// host and may be used to perform stream operations.
|
||||
|
||||
//]
|
||||
}
|
||||
}
|
||||
|
||||
} // fxx()
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//[snippet_core_3
|
||||
|
||||
template<class SyncWriteStream>
|
||||
|
||||
Reference in new issue
Block a user