diff options
author | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-23 18:43:53 +0000 |
---|---|---|
committer | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-23 18:43:53 +0000 |
commit | 6c23dc75e2a0478911e19f810baf7187f79048ff (patch) | |
tree | a9353b09edbc5011fff5adcd266a85223c4d001a /ace/Malloc_T.h | |
parent | 7e064186e8d02f93cec87da5ae665ea692175a7e (diff) | |
download | ATCD-6c23dc75e2a0478911e19f810baf7187f79048ff.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Malloc_T.h')
-rw-r--r-- | ace/Malloc_T.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ace/Malloc_T.h b/ace/Malloc_T.h index 810fb3159f7..d33b7ca2b89 100644 --- a/ace/Malloc_T.h +++ b/ace/Malloc_T.h @@ -47,13 +47,12 @@ public: // set the next ACE_Cached_Mem_Pool_Node. private: - union - { - T obj_; - ACE_Cached_Mem_Pool_Node<T> *next_; - }; + ACE_Cached_Mem_Pool_Node<T> *next_; // Since memory is not used when placed in a free list, // we can use it to maintain the structure of free list. + // I was using union to hide the fact of overlapping memory + // usage. However, that cause problem on MSVC. So, I now turn + // back to hack this with casting. }; template <class T, class LOCK> |