summaryrefslogtreecommitdiff
path: root/ace/Auto_Ptr.h
diff options
context:
space:
mode:
authornw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-21 22:02:07 +0000
committernw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-21 22:02:07 +0000
commit6c5ed4bb95a09c67aa31194059ca6427cdc1bd9f (patch)
tree469fd32d117e056d516ccfe765befc75ffb7b0fe /ace/Auto_Ptr.h
parent559b78eaef15a3f14eca57a4d8f13dfb57f70e3b (diff)
downloadATCD-6c5ed4bb95a09c67aa31194059ca6427cdc1bd9f.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Auto_Ptr.h')
-rw-r--r--ace/Auto_Ptr.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/ace/Auto_Ptr.h b/ace/Auto_Ptr.h
index bd56a735353..4ef59eaa916 100644
--- a/ace/Auto_Ptr.h
+++ b/ace/Auto_Ptr.h
@@ -21,9 +21,6 @@
#include "ace/ACE.h"
-#if !defined (ACE_HAS_STANDARD_CPP_LIBRARY) || \
- (ACE_HAS_STANDARD_CPP_LIBRARY == 0)
-
template <class X>
class ACE_Auto_Basic_Ptr
// = TITLE
@@ -55,6 +52,15 @@ protected:
X *p_;
};
+#if defined (ACE_HAS_STANDARD_CPP_LIBRARY) && \
+ (ACE_HAS_STANDARD_CPP_LIBRARY != 0)
+#include <memory>
+#if defined (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB) && \
+ (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB != 0)
+using std::auto_ptr;
+#endif /* ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB */
+#else /* ACE_HAS_STANDARD_CPP_LIBRARY */
+
template <class X>
class auto_ptr : public ACE_Auto_Basic_Ptr <X>
// = TITLE
@@ -67,12 +73,6 @@ public:
X *operator-> () const;
};
-#else /* ACE_HAS_STANDARD_CPP_LIBRARY */
-#include <memory>
-#if defined (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB) && \
- (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB != 0)
-using std::auto_ptr;
-#endif /* ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB */
#endif /* ACE_HAS_STANDARD_CPP_LIBRARY */
template<class X>