summaryrefslogtreecommitdiff
path: root/ACE/examples/Threads/future1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/examples/Threads/future1.cpp')
-rw-r--r--ACE/examples/Threads/future1.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ACE/examples/Threads/future1.cpp b/ACE/examples/Threads/future1.cpp
index db54db97fc3..96504624420 100644
--- a/ACE/examples/Threads/future1.cpp
+++ b/ACE/examples/Threads/future1.cpp
@@ -218,7 +218,11 @@ Scheduler::svc (void)
{
// Dequeue the next method object (we use an auto pointer in
// case an exception is thrown in the <call>).
+#if defined (ACE_HAS_CPP11)
+ std::unique_ptr<ACE_Method_Request> mo (this->activation_queue_.dequeue ());
+#else
auto_ptr<ACE_Method_Request> mo (this->activation_queue_.dequeue ());
+#endif /* ACE_HAS_CPP11 */
ACE_DEBUG ((LM_DEBUG, "(%t) calling method object\n"));
// Call it.