summaryrefslogtreecommitdiff
path: root/ace/Managed_Object.h
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Managed_Object.h')
-rw-r--r--ace/Managed_Object.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/ace/Managed_Object.h b/ace/Managed_Object.h
index b700a59cf13..041e7c2d82a 100644
--- a/ace/Managed_Object.h
+++ b/ace/Managed_Object.h
@@ -24,8 +24,6 @@
#include "ace/Object_Manager.h"
#include "ace/Global_Macros.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Cleanup_Adapter
*
@@ -117,7 +115,7 @@ public:
// Get the preallocated object identified by "id". Returns a
// pointer to the object. Beware: no error indication is provided,
// because it can _only_ be used for accessing preallocated objects.
- // @note The function definition is inlined here so that it compiles
+ // Note: the function definition is inlined here so that it compiles
// on AIX 4.1 w/xlC v. 3.01.
static TYPE *get_preallocated_array (ACE_Object_Manager::Preallocated_Array identifier)
@@ -135,21 +133,17 @@ public:
// Get the preallocated array identified by "id". Returns a
// pointer to the array. Beware: no error indication is provided,
// because it can _only_ be used for accessing preallocated arrays.
- // @note The function definition is inlined here so that it compiles
+ // Note: the function definition is inlined here so that it compiles
// on AIX 4.1 w/xlC v. 3.01.
-protected:
-
+private:
// Disallow instantiation of this class.
ACE_UNIMPLEMENTED_FUNC (ACE_Managed_Object (void))
-
-private:
-
ACE_UNIMPLEMENTED_FUNC (ACE_Managed_Object (const ACE_Managed_Object<TYPE> &))
ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Managed_Object<TYPE> &))
-};
-ACE_END_VERSIONED_NAMESPACE_DECL
+ friend class this_prevents_compiler_warning_about_only_private_constructors;
+};
#if defined (__ACE_INLINE__)
#include "ace/Managed_Object.inl"