diff options
Diffstat (limited to 'ACE/tests/Task_Ex_Test.cpp')
-rw-r--r-- | ACE/tests/Task_Ex_Test.cpp | 4 |
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 ())); |