summaryrefslogtreecommitdiff
path: root/ACE/Kokyu/Default_Dispatcher_Impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/Kokyu/Default_Dispatcher_Impl.cpp')
-rw-r--r--ACE/Kokyu/Default_Dispatcher_Impl.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/ACE/Kokyu/Default_Dispatcher_Impl.cpp b/ACE/Kokyu/Default_Dispatcher_Impl.cpp
index 29d6ef1a9be..c5f067fb878 100644
--- a/ACE/Kokyu/Default_Dispatcher_Impl.cpp
+++ b/ACE/Kokyu/Default_Dispatcher_Impl.cpp
@@ -1,5 +1,8 @@
#include "Default_Dispatcher_Impl.h"
+
#include "ace/Sched_Params.h"
+#include <utility>
+#include <memory>
#if ! defined (__ACE_INLINE__)
#include "Default_Dispatcher_Impl.inl"
@@ -50,8 +53,8 @@ Default_Dispatcher_Impl::init_i (const Dispatcher_Attributes& attrs)
Dispatcher_Task (*config,
ACE_Thread_Manager::instance()),
-1);
- auto_ptr<Dispatcher_Task> tmp_task_auto_ptr (task);
- tasks_[i++] = tmp_task_auto_ptr;
+ std::unique_ptr<Dispatcher_Task> tmp_task_auto_ptr (task);
+ tasks_[i++] = std::move(tmp_task_auto_ptr);
//I couldn't use reset because MSVC6 auto_ptr does not have reset method.
//So in configurations where the auto_ptr maps to the std::auto_ptr instead
//of ACE auto_ptr, this would be a problem.