From 8f2464a0b24466f850f36a7f7ad5898c883c67a0 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Wed, 6 Mar 2019 08:50:09 +0100 Subject: Fix c++11 auto_ptr warning * ACE/tests/Task_Ex_Test.cpp: --- ACE/tests/Task_Ex_Test.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ACE/tests') diff --git a/ACE/tests/Task_Ex_Test.cpp b/ACE/tests/Task_Ex_Test.cpp index 15b03891a2c..d9d141aaaa9 100644 --- a/ACE/tests/Task_Ex_Test.cpp +++ b/ACE/tests/Task_Ex_Test.cpp @@ -67,7 +67,11 @@ int Consumer::svc () while(this->getq (pMsg)!=-1) { ACE_TEST_ASSERT (pMsg!=0); +#if defined (ACE_HAS_CPP11) + std::unique_ptr pAuto(pMsg); +#else auto_ptr pAuto(pMsg); +#endif /* ACE_HAS_CPP11 */ ACE_DEBUG((LM_DEBUG, ACE_TEXT("Consumer::svc got msg id=%d\n"), pMsg->msg_id ())); -- cgit v1.2.1