diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-07-07 08:27:07 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-07-07 08:27:07 +0000 |
commit | 77f8caed5f5f23c74d55c908da467c2ba53f4327 (patch) | |
tree | 8db313ec4441d28785ffc4a66b6070b99f362dc5 /ace/Based_Pointer_T.cpp | |
parent | 7d05afaa28181c4e092f5460e499efabcd895ffb (diff) | |
download | ATCD-77f8caed5f5f23c74d55c908da467c2ba53f4327.tar.gz |
ChangeLogTag:Wed Jul 07 01:28:40 1999 Nanbor Wang <nanbor@cs.wustl.edu>
Diffstat (limited to 'ace/Based_Pointer_T.cpp')
-rw-r--r-- | ace/Based_Pointer_T.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ace/Based_Pointer_T.cpp b/ace/Based_Pointer_T.cpp index f8c6717889e..6a01f656f8c 100644 --- a/ace/Based_Pointer_T.cpp +++ b/ace/Based_Pointer_T.cpp @@ -1,21 +1,23 @@ // $Id$ -#if !defined (ACE_BASED_POINTER_T_CPP) +#ifndef ACE_BASED_POINTER_T_CPP #define ACE_BASED_POINTER_T_CPP #include "ace/Based_Pointer_Repository.h" #include "ace/Based_Pointer_T.h" template <class CONCRETE> -ACE_Based_Pointer<CONCRETE>::ACE_BasedPointer (void) +ACE_Based_Pointer<CONCRETE>::ACE_Based_Pointer (void) : target_ (0), base_offset_ (0) { + void *base_addr = 0; + // Find the base address associated with our <this> pointer. Note // that it's ok for <find> to return 0, which simply indicates that // the address is not in memory-mapped virtual address space. - void *base_addr = - ACE_BASED_POINTER_REPOSITORY::instance ()->find (this); + ACE_BASED_POINTER_REPOSITORY::instance ()->find (this, + base_addr); this->base_offset_ = (char *) this - (char *) base_addr; } |