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