diff options
Diffstat (limited to 'TAO/tao/Dynamic_TP/DTP_Thread_Pool.cpp')
-rw-r--r-- | TAO/tao/Dynamic_TP/DTP_Thread_Pool.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/TAO/tao/Dynamic_TP/DTP_Thread_Pool.cpp b/TAO/tao/Dynamic_TP/DTP_Thread_Pool.cpp index 78c4ef2b411..a51873958c1 100644 --- a/TAO/tao/Dynamic_TP/DTP_Thread_Pool.cpp +++ b/TAO/tao/Dynamic_TP/DTP_Thread_Pool.cpp @@ -519,7 +519,11 @@ CORBA::ULong TAO_DTP_Thread_Pool_Manager::create_threadpool_helper (TAO_DTP_Thread_Pool *thread_pool) { // Make sure of safe deletion in case of errors. +#if defined (ACE_HAS_CPP11) + std::unique_ptr<TAO_DTP_Thread_Pool> safe_thread_pool (thread_pool); +#else auto_ptr<TAO_DTP_Thread_Pool> safe_thread_pool (thread_pool); +#endif /* ACE_HAS_CPP11 */ // Open the pool. thread_pool->open (); |