summaryrefslogtreecommitdiff
path: root/ACE/tests
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2019-03-06 08:50:09 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2019-03-06 08:50:09 +0100
commit8f2464a0b24466f850f36a7f7ad5898c883c67a0 (patch)
tree7059395b00b070a2bb9c067b32480a502f85c5b6 /ACE/tests
parent9e2051900f578db47a7713890e97415841e2c094 (diff)
downloadATCD-8f2464a0b24466f850f36a7f7ad5898c883c67a0.tar.gz
Fix c++11 auto_ptr warning
* ACE/tests/Task_Ex_Test.cpp:
Diffstat (limited to 'ACE/tests')
-rw-r--r--ACE/tests/Task_Ex_Test.cpp4
1 files changed, 4 insertions, 0 deletions
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<User_Defined_Msg> pAuto(pMsg);
+#else
auto_ptr<User_Defined_Msg> pAuto(pMsg);
+#endif /* ACE_HAS_CPP11 */
ACE_DEBUG((LM_DEBUG,
ACE_TEXT("Consumer::svc got msg id=%d\n"),
pMsg->msg_id ()));