mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-20 05:49:04 +02:00
use std::auto_ptr guarded with POCO_ENABLE_CPP11
This commit is contained in:
@@ -49,7 +49,11 @@ namespace
|
||||
try
|
||||
{
|
||||
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]);
|
||||
#endif // POCO_ENABLE_CPP11
|
||||
int flags;
|
||||
int n;
|
||||
do
|
||||
|
Reference in New Issue
Block a user