summaryrefslogtreecommitdiff
path: root/ACE/ace
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2017-11-24 13:40:05 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2017-11-24 13:40:05 +0100
commite9778ea7d1d3bb7baab3403f0c0e3802df209250 (patch)
tree209dda4d33984793c100878ebc15f3bfd3a557bf /ACE/ace
parent1e501fb9df9cd2122ccadf03e5c886c06d0b6cea (diff)
downloadATCD-e9778ea7d1d3bb7baab3403f0c0e3802df209250.tar.gz
When we have C++11 support we use std::unique_ptr instead of auto_ptr
* ACE/ace/Thread_Manager.cpp:
Diffstat (limited to 'ACE/ace')
-rw-r--r--ACE/ace/Thread_Manager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ACE/ace/Thread_Manager.cpp b/ACE/ace/Thread_Manager.cpp
index 94b25f7063f..d958983686e 100644
--- a/ACE/ace/Thread_Manager.cpp
+++ b/ACE/ace/Thread_Manager.cpp
@@ -615,7 +615,11 @@ ACE_Thread_Manager::spawn_i (ACE_THR_FUNC func,
flags),
-1);
# endif /* ACE_HAS_WIN32_STRUCTURAL_EXCEPTIONS */
+#if defined ACE_HAS_CPP11
+ std::unique_ptr <ACE_Base_Thread_Adapter> auto_thread_args (static_cast<ACE_Base_Thread_Adapter *> (thread_args));
+#else
auto_ptr <ACE_Base_Thread_Adapter> auto_thread_args (static_cast<ACE_Base_Thread_Adapter *> (thread_args));
+#endif
ACE_TRACE ("ACE_Thread_Manager::spawn_i");
ACE_hthread_t thr_handle;