commit 2025-08-24 11:07 edit a bit ZCppMain/ZMainHead.H etc

This commit is contained in:
2025-08-24 11:07:13 +09:00
parent 949c731b87
commit a8b73f68de
5 changed files with 72 additions and 14 deletions

View File

@ -3112,7 +3112,18 @@ namespace ZNsMain
HANDLE mh_Mutex;
public :
void Lock() throw(ZCExceptSmallLock&)
/*/////////////////////////////////////////////////////////
Administrator@q381-2673 UCRT64 /e/my_CPP/ZCpp/ZCppMainTest
# g++.exe -o ZtCArray_000_mw.exe ZtCArray_000.cpp -I../
In file included from ../ZCppMain/ZtCArray.H:7,
from ZtCArray_000.cpp:4:
../ZCppMain/ZMainHead.H:3115:21: error: ISO C++17 does not allow dynamic exception specifications
3115 | void Lock() throw(ZCExceptSmallLock&)
/////////////////////////////////////////////////////////*/
void Lock() /*throw(ZCExceptSmallLock&)*/
{
long VL_ErrCode=0;
@ -3122,7 +3133,7 @@ namespace ZNsMain
}/*
if((VL_ErrCode = ::WaitForSingleObject(mh_Mutex, INFINITE))==WAIT_ABANDONED)*/
}/*
void Lock() throw(ZCExceptSmallLock&)*/
void Lock() /*throw(ZCExceptSmallLock&)*/
void UnLock()
{