mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-02 14:03:41 +01:00
ifdef auto_ptr
This commit is contained in:
@@ -47,7 +47,11 @@ int main(int argc, char** argv)
|
||||
try
|
||||
{
|
||||
URI uri(argv[1]);
|
||||
#ifndef POCO_ENABLE_CPP11
|
||||
std::auto_ptr<std::istream> pStr(URIStreamOpener::defaultOpener().open(uri));
|
||||
#else
|
||||
std::unique_ptr<std::istream> pStr(URIStreamOpener::defaultOpener().open(uri));
|
||||
#endif // POCO_ENABLE_CPP11
|
||||
StreamCopier::copyStream(*pStr.get(), std::cout);
|
||||
}
|
||||
catch (Exception& exc)
|
||||
|
||||
Reference in New Issue
Block a user