diff options
Diffstat (limited to 'ACE/examples/C++NPv1/RT_Thread_Per_Connection_Logging_Server.cpp')
-rw-r--r-- | ACE/examples/C++NPv1/RT_Thread_Per_Connection_Logging_Server.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ACE/examples/C++NPv1/RT_Thread_Per_Connection_Logging_Server.cpp b/ACE/examples/C++NPv1/RT_Thread_Per_Connection_Logging_Server.cpp index 8b2ac983310..1438c5e7148 100644 --- a/ACE/examples/C++NPv1/RT_Thread_Per_Connection_Logging_Server.cpp +++ b/ACE/examples/C++NPv1/RT_Thread_Per_Connection_Logging_Server.cpp @@ -2,7 +2,6 @@ ** Copyright 2001 Addison Wesley. All Rights Reserved. */ -#include "ace/Auto_Ptr.h" #include "ace/FILE_IO.h" #include "ace/Log_Msg.h" #include "ace/Sched_Params.h" @@ -13,6 +12,7 @@ #include "Logging_Handler.h" #include <errno.h> +#include <memory> namespace { extern "C" void sigterm_handler (int /* signum */) { /* No-op. */ } @@ -59,7 +59,7 @@ RT_Thread_Per_Connection_Logging_Server::handle_data (ACE_SOCK_Stream *client) ACE_THR_FUNC_RETURN Thread_Per_Connection_Logging_Server::run_svc (void *arg) { - auto_ptr<Thread_Args> thread_args (static_cast<Thread_Args *> (arg)); + std::unique_ptr<Thread_Args> thread_args (static_cast<Thread_Args *> (arg)); thread_args->this_->handle_data (&thread_args->logging_peer_); thread_args->logging_peer_.close (); @@ -70,7 +70,7 @@ ACE_THR_FUNC_RETURN Thread_Per_Connection_Logging_Server::run_svc (void *arg) int Thread_Per_Connection_Logging_Server::handle_connections () { - auto_ptr<Thread_Args> thread_args (new Thread_Args (this)); + std::unique_ptr<Thread_Args> thread_args (new Thread_Args (this)); if (acceptor ().accept (thread_args->logging_peer_) == -1) return -1; |