Fix compilation errors with msvc /std:c++latest

fixes #1916
fixes #1925
This commit is contained in:
Richard Hodges
2020-05-01 07:08:31 +02:00
parent fda558e034
commit 638e2d1244
21 changed files with 55 additions and 54 deletions
+1 -1
View File
@@ -585,7 +585,7 @@ public:
//--------------------------------------------------------------------------
// Asynchronously read into a buffer until the buffer is full, or an error occurs
template<class AsyncReadStream, class ReadHandler>
template<class AsyncReadStream, BOOST_BEAST_ASYNC_TPARAM2 ReadHandler>
typename net::async_result<ReadHandler, void(error_code, std::size_t)>::return_type
async_read(AsyncReadStream& stream, net::mutable_buffer buffer, ReadHandler&& handler)
{