From 0de4dc18e8809c9c0d47ae810ae6d5d087dab087 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Tue, 15 May 2018 17:10:48 +0200 Subject: Make use of std::unique_ptr when we have C++11 * ACE/ace/OS_NS_Thread.cpp: --- ACE/ace/OS_NS_Thread.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ACE/ace/OS_NS_Thread.cpp b/ACE/ace/OS_NS_Thread.cpp index 18ac132a7df..38f92de4943 100644 --- a/ACE/ace/OS_NS_Thread.cpp +++ b/ACE/ace/OS_NS_Thread.cpp @@ -13,7 +13,6 @@ #include "ace/OS_NS_errno.h" #include "ace/OS_NS_ctype.h" #include "ace/Log_Category.h" // for ACE_ASSERT -// This is necessary to work around nasty problems with MVS C++. #include "ace/Auto_Ptr.h" #include "ace/Thread_Mutex.h" #include "ace/Condition_Thread_Mutex.h" @@ -3557,7 +3556,11 @@ ACE_OS::thr_create (ACE_THR_FUNC func, else thread_args = thread_adapter; +#if defined (ACE_HAS_CPP11) + std::unique_ptr auto_thread_args; +#else auto_ptr auto_thread_args; +#endif /* ACE_HAS_CPP11 */ if (thread_adapter == 0) ACE_auto_ptr_reset (auto_thread_args, -- cgit v1.2.1