summaryrefslogtreecommitdiff
path: root/TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp')
-rw-r--r--TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp b/TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp
index 1aedfbc1951..25e3c395d76 100644
--- a/TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp
+++ b/TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp
@@ -116,7 +116,11 @@ namespace TAO
TAO::Any_Basic_Impl *replacement =
TAO::Any_Basic_Impl::create_empty (any_tc);
+#if defined (ACE_HAS_CPP11)
+ std::unique_ptr<TAO::Any_Basic_Impl> replacement_safety (replacement);
+#else
auto_ptr<TAO::Any_Basic_Impl> replacement_safety (replacement);
+#endif /* ACE_HAS_CPP11 */
// We know this will work since the unencoded case is covered above.
TAO::Unknown_IDL_Type * const unk =