From 01f78dda447ce1dad70c2a40d193dad01156065d Mon Sep 17 00:00:00 2001 From: lganzzzo Date: Mon, 20 Jul 2020 04:55:21 +0300 Subject: [PATCH] Update to the latest oatpp API. --- src/oatpp-mongo/driver/wire/Connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oatpp-mongo/driver/wire/Connection.cpp b/src/oatpp-mongo/driver/wire/Connection.cpp index 7e272bd..d8c8dd7 100644 --- a/src/oatpp-mongo/driver/wire/Connection.cpp +++ b/src/oatpp-mongo/driver/wire/Connection.cpp @@ -40,7 +40,7 @@ v_io_size Connection::write(const Message& message) { throw std::runtime_error("[oatpp::mongo::driver::wire::Connection::write()]: Error. Invalid message header."); } - data::stream::BufferOutputStream stream(16, 16); + data::stream::BufferOutputStream stream(16); message.header.writeToStream(&stream); auto res1 = m_connection->writeExactSizeDataSimple(stream.getData(), stream.getCurrentPosition());