mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 08:46:41 +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
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user