use std::auto_ptr guarded with POCO_ENABLE_CPP11

This commit is contained in:
Francis ANDRE 2018-05-09 07:31:35 +02:00
parent ad0ff29bce
commit a9d3a17557

View File

@ -49,7 +49,11 @@ namespace
try try
{ {
WebSocket ws(request, response); WebSocket ws(request, response);
#ifndef POCO_ENABLE_CPP11
std::auto_ptr<char[]> pBuffer(new char[_bufSize]);
#else
std::unique_ptr<char[]> pBuffer(new char[_bufSize]); std::unique_ptr<char[]> pBuffer(new char[_bufSize]);
#endif // POCO_ENABLE_CPP11
int flags; int flags;
int n; int n;
do do