From 46a39dd4cd67f4eaa047bfb45acdbc97540a6530 Mon Sep 17 00:00:00 2001 From: schmidt Date: Wed, 4 Aug 1999 02:39:12 +0000 Subject: ChangeLogTag:Tue Aug 3 18:50:02 1999 Douglas C. Schmidt --- ace/Based_Pointer_T.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'ace/Based_Pointer_T.h') diff --git a/ace/Based_Pointer_T.h b/ace/Based_Pointer_T.h index 82c40e2a87d..3306016b8c3 100644 --- a/ace/Based_Pointer_T.h +++ b/ace/Based_Pointer_T.h @@ -82,6 +82,9 @@ public: void operator = (CONCRETE *from); // Pseudo-assignment operator. + void operator = (const ACE_Based_Pointer_Basic &); + // Pseudo-assignment operator. + CONCRETE operator * (void) const; // Dereference operator. @@ -109,6 +112,9 @@ public: void operator+= (long index); // Increment operator. + operator CONCRETE *() const; + // Returns the underlying memory address of the smart pointer. + CONCRETE *addr (void) const; // Returns the underlying memory address of the smart pointer. @@ -118,17 +124,11 @@ public: void dump (void) const; // Dump the state of the object. - // The following should be private, but that causes problems due to - // broken C++ compilers that don't like friends for methods - // in templates. protected: long target_; long base_offset_; // Keep track of our offset from the base pointer. - - // = Prevent assignment and initialization (for now). - ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Based_Pointer_Basic &)) }; template @@ -152,16 +152,16 @@ public: // Initialize this object using the pointer. ACE_Based_Pointer (const ACE_Based_Pointer &); - // Copy constructor. + // Copy constructor (not implemented yet). + + void operator = (const ACE_Based_Pointer &); + // Assignment operator. void operator = (CONCRETE *from); // Pseudo-assignment operator. CONCRETE *operator-> (void); // The C++ "delegation operator". - - // = Prevent assignment and initialization (for now). - ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Based_Pointer &)) }; #if defined (__ACE_INLINE__) -- cgit v1.2.1