commit 2025-08-25 23:25 edit a bit ZtCObjectNew in ZCppMain/ZMainHead.H

This commit is contained in:
2025-08-25 23:25:48 +09:00
parent 502f0f31ad
commit 1e90010716

View File

@ -2941,10 +2941,10 @@ namespace ZNsMain
template< typename TType, typename TAllocClass=ZCAllocClass
>
class ZtCObjectNew : public TAllocClass ////////////////////
class ZtCObjectNew : public TAllocClass /////////////////////
{
public :
typedef TType TypeData ;
typedef TType TypeData ;
typedef TAllocClass ZCAllocator;
private:
@ -3024,7 +3024,7 @@ namespace ZNsMain
{
if(&mp_StTypeRefCnt->MO_TypeData==&AR_TypeData) return *this;
mp_StTypeRefCnt->MO_TypeData = AR_TypeData; return *this;
mp_StTypeRefCnt->MO_TypeData = AR_TypeData; return *this;
}/*
ZtCObjectNew& operator=(const TypeData& AR_TypeData)*/
@ -3033,14 +3033,14 @@ namespace ZNsMain
operator TypeData& (){return mp_StTypeRefCnt->MO_TypeData;}
ZTypInt GetRefCnt() const{return mp_StTypeRefCnt->MI_RefCount;}
TypeData* GetObjPtr() const{return &mp_StTypeRefCnt->MO_TypeData;}
ZTypInt GetRefCnt () const{return mp_StTypeRefCnt->MI_RefCount;}
TypeData* GetObjPtr () const{return &mp_StTypeRefCnt->MO_TypeData;}
public :
};/*
template< typename TType, typename TAllocClass=ZCAllocClass
>
class ZtCObjectNew : public TAllocClass //////////////////*/
class ZtCObjectNew : public TAllocClass ///////////////////*/
#ifdef _DEBUG