commit 2025-09-28 01:08 edit a bit ZCppMain/ZMainHead.H
This commit is contained in:
@ -1027,6 +1027,7 @@ namespace ZNsMain
|
||||
{
|
||||
public:
|
||||
typedef TTypeChild TypeData;
|
||||
typedef TTypeChild TypeHigh;
|
||||
public:
|
||||
enum{ZEUseCRTP=(ZTypIntE)TTypebUseCRTP};
|
||||
public:
|
||||
@ -1036,24 +1037,26 @@ namespace ZNsMain
|
||||
class ZtCTypeCRTP //////////////////////////////////////////////*/
|
||||
|
||||
|
||||
template< typename TTypeChild =ZCEmpty
|
||||
, typename TTypeBase =ZCEmpty
|
||||
, bool TTypebUseCRTP=false
|
||||
template< typename TTypeChild = ZCEmpty , ////////////////////
|
||||
typename TTypeBase = ZCEmpty ,
|
||||
bool TTypebUseCRTP= false
|
||||
>
|
||||
class ZtCTypeCRTP2 ///////////////////////
|
||||
class ZtCTypeCRTP2 ///////////////////////////////////////////////
|
||||
{
|
||||
public:
|
||||
typedef TTypeChild TypeData;
|
||||
typedef TTypeChild TypeHigh;
|
||||
typedef TTypeBase TypeBase;
|
||||
public:
|
||||
enum{ZEUseCRTP=(ZTypIntE)TTypebUseCRTP};
|
||||
public:
|
||||
}; /*
|
||||
template< typename TTypeChild =ZCEmpty
|
||||
, typename TTypeBase =ZCEmpty
|
||||
, bool TTypebUseCRTP=false
|
||||
template< typename TTypeChild = ZCEmpty , ////////////////////
|
||||
typename TTypeBase = ZCEmpty ,
|
||||
bool TTypebUseCRTP= false
|
||||
>
|
||||
class ZtCTypeCRTP2 /////////////////////*/
|
||||
class ZtCTypeCRTP2 /////////////////////////////////////////////*/
|
||||
|
||||
|
||||
/*//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -1101,13 +1104,26 @@ namespace ZNsMain
|
||||
|
||||
template<typename TTypeNow, typename TTypeChild>
|
||||
class ZtCTypeNowCRTP
|
||||
{ public: typedef TTypeChild TypeData; public: enum{ZEUseCRTP=1}; };
|
||||
{
|
||||
public: enum{ZEUseCRTP=1};
|
||||
public: typedef TTypeChild TypeData;
|
||||
public: typedef TTypeNow TypeBase;
|
||||
};
|
||||
template<typename TTypeNow>
|
||||
class ZtCTypeNowCRTP<TTypeNow, ZCEmpty>
|
||||
{ public: typedef TTypeNow TypeData; public: enum{ZEUseCRTP=0}; };
|
||||
{
|
||||
public: enum{ZEUseCRTP=0};
|
||||
public: typedef TTypeNow TypeData;
|
||||
public: typedef TTypeNow TypeBase;
|
||||
};
|
||||
template<typename TTypeNow>
|
||||
class ZtCTypeNowCRTP<TTypeNow, void >
|
||||
{ public: typedef TTypeNow TypeData; public: enum{ZEUseCRTP=0}; };
|
||||
{
|
||||
public: enum{ZEUseCRTP=0};
|
||||
public: typedef TTypeNow TypeData;
|
||||
public: typedef TTypeNow TypeBase;
|
||||
};
|
||||
////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user