summaryrefslogtreecommitdiff
path: root/ACE/Kokyu/Kokyu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/Kokyu/Kokyu.cpp')
-rw-r--r--ACE/Kokyu/Kokyu.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/ACE/Kokyu/Kokyu.cpp b/ACE/Kokyu/Kokyu.cpp
index 5c1f4fe9d17..1f89b5f712b 100644
--- a/ACE/Kokyu/Kokyu.cpp
+++ b/ACE/Kokyu/Kokyu.cpp
@@ -1,5 +1,7 @@
#include "Kokyu.h"
+#include <utility>
+
#include "Default_Dispatcher_Impl.h"
#if ! defined (__ACE_INLINE__)
@@ -26,8 +28,8 @@ int Dispatcher::activate ()
void Dispatcher::implementation (Dispatcher_Impl* impl)
{
- auto_ptr<Dispatcher_Impl> tmp_impl (impl);
- dispatcher_impl_ = tmp_impl;
+ std::unique_ptr<Dispatcher_Impl> tmp_impl (impl);
+ dispatcher_impl_ = std::move(tmp_impl);
//I couldn't use reset because MSVC++ auto_ptr does not have reset method.
//So in configurations where the auto_ptr maps to the std::auto_ptr instead