mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 00:46:03 +01:00
use std::auto_ptr guarded with POCO_ENABLE_CPP11
This commit is contained in:
parent
ad0ff29bce
commit
a9d3a17557
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user