auto_ptr is deprecated - use unique_ptr instead

develop
Ben Lubar 2017-10-04 14:37:04 -05:00
parent 54b0d2fcb6
commit d3f3ebf778
No known key found for this signature in database
GPG Key ID: 018BAB45DB2D2B24
1 changed files with 1 additions and 1 deletions

@ -261,7 +261,7 @@ void ServerConnection::threadFn()
break;
}
std::auto_ptr<uint8_t> buf(new uint8_t[header.size]);
std::unique_ptr<uint8_t[]> buf(new uint8_t[header.size]);
if (!readFullBuffer(socket, buf.get(), header.size))
{