diff --git a/ZCppMain/ZCProcess.H b/ZCppMain/ZCProcess.H index bf51006..d67247d 100644 --- a/ZCppMain/ZCProcess.H +++ b/ZCppMain/ZCProcess.H @@ -575,16 +575,15 @@ namespace ZNsMain }/* _VT_ void Exec()*/ - template _VT_ void Exec(THelpKey AR_HelpKey) + template _VT_ void Exec(THelpKey) { #ifdef _DEBUG std::cout<<"▶ ZCThreadEx::Exec(THelpKey), THelpKey typename="< _VT_ void Exec(THelpKey AR_HelpKey)*/ + template _VT_ void Exec(THelpKey)*/ - template - _VT_ void Exec(THelpKey1 AR_HelpKey1,THelpKey2 AR_HelpKey2) + template _VT_ void Exec(THelpKey1, THelpKey2) { #ifdef _DEBUG std::cout<<"▶▶ ZCThreadEx::Exec(THelpKey1, THelpKey2), " @@ -592,11 +591,10 @@ namespace ZNsMain "THelpKey2 typename="< - _VT_ void Exec(THelpKey1 AR_HelpKey1,THelpKey2 AR_HelpKey2)*/ + template _VT_ void Exec(THelpKey1 AR_HelpKey1,THelpKey2 AR_HelpKey2)*/ template - _VT_ void Exec3(THelpKey1 AR_HelpKey1,THelpKey2 AR_HelpKey2,THelpKey3 AR_HelpKey3) + _VT_ void Exec(THelpKey1 AR_HelpKey1,THelpKey2 AR_HelpKey2,THelpKey3 AR_HelpKey3) { #ifdef _DEBUG std::cout<<"▶▶ ZCThreadEx::Exec(THelpKey1, THelpKey2, THelpKey3), " diff --git a/ZCppMainTest/ZtCThreadEx_000.cpp b/ZCppMainTest/ZtCThreadEx_000.cpp index 3fc2698..d364c3b 100644 --- a/ZCppMainTest/ZtCThreadEx_000.cpp +++ b/ZCppMainTest/ZtCThreadEx_000.cpp @@ -27,45 +27,82 @@ namespace ZNsMain class CThreadMy : public ZNsMain::ZtCThreadEx { public: + typedef ZNsMain::ZtCThreadEx TypeBase; + public: + + void Init() + { + this->TypeBase::Init(); cout<<"* Init0()"<TypeBase::Exec(); cout<<"* Exec0()"<TypeBase::Fini(); cout<<"* Fini0()"<TypeBase::template Init(AR_KeyCStr); cout<<"* Init1() : "<TypeBase::template Exec(AR_KeyCStr); cout<<"* Exec1() : "<TypeBase::template Fini(AR_KeyCStr); cout<<"* Fini1() : "<TypeBase::template Init + (AR_KeyCStr, AR_KeyCStr2); + cout<<"* Init2() : "<TypeBase::template Exec + (AR_KeyCStr, AR_KeyCStr2); + cout<<"* Init2() : "<TypeBase::template Fini + (AR_KeyCStr, AR_KeyCStr2); + cout<<"* Init2() : "<TypeBase::template Init + + ( AR_KeyCStr, AR_KeyCStr2, AR_KeyCStr3 ) ; + cout<<"* Init3() : "<TypeBase::template Exec + + ( AR_KeyCStr, AR_KeyCStr2, AR_KeyCStr3 ) ; + cout<<"* Init3() : "<TypeBase::template Fini + + ( AR_KeyCStr, AR_KeyCStr2, AR_KeyCStr3 ) ; + cout<<"* Init3() : "<