From c617e6ea8a01d5ed09136da7c7bbd16447969586 Mon Sep 17 00:00:00 2001 From: sauron Date: Sun, 28 Sep 2025 11:35:04 +0900 Subject: [PATCH] commit 2025-09-28 11:34 edit a bit ZCppMain/ZMainHead.H --- ZCppMain/ZMainHead.H | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/ZCppMain/ZMainHead.H b/ZCppMain/ZMainHead.H index 2f7de42..bdb787d 100644 --- a/ZCppMain/ZMainHead.H +++ b/ZCppMain/ZMainHead.H @@ -901,7 +901,8 @@ namespace ZNsMain -- 2021-04-10 16:15 */ - template class ZtCCheckRef + template + class ZtCCheckRef /*###############################################*/ { public : typedef TType TypeData; @@ -915,11 +916,13 @@ namespace ZNsMain public : static TypeData PassData(TypeData AO_Data){return AO_Data;} };/* - template class ZtCCheckRef*/ + template + class ZtCCheckRef #################################################*/ /* ZtCRef 전문화 */ - template class ZtCCheckRef< ZtCRef > + template + class ZtCCheckRef< ZtCRef > /*##############################*/ { public : typedef TType& TypeData; @@ -935,26 +938,29 @@ namespace ZNsMain static TypeData PassData(TypeData AO_Data){return AO_Data;} static TypeData PassData(ZCRef& AO_Data){return AO_Data.GetData();} };/* - template class ZtCCheckRef< ZtCRef >*/ + template + class ZtCCheckRef< ZtCRef > ################################*/ - /*////////////////////////////////////////////////////////// + /*/////////////////////////////////////////////////////////////////////// ■ ZtCRef* 전문화 아래 함수 - template inline ZtCRef* - ZftMakeCPtr(TTypType& AR_TypeData){ return (ZtCRef*)(&AR_TypeData);} + template inline + ZtCRef* ZftMakeCPtr(TTypType& AR_TypeData) + { return (ZtCRef*)(&AR_TypeData); } 를 통해, 생성된 포인터에 대해서, 정적 멤버 PassData() 로 TypeRaw* 로 강제변환하고 있다. 그래서 ZtCRef 객 체의 생성없이 TypeRaw 를 참조로 다룰려고 하는 것이다. - -- 2025=08-07 17:19 + -- 2025-08-07 17:19 - //////////////////////////////////////////////////////////*/ - template class ZtCCheckRef< ZtCRef* > + ///////////////////////////////////////////////////////////////////////*/ + template + class ZtCCheckRef< ZtCRef* > /*#############################*/ { public : typedef TType& TypeData; @@ -972,7 +978,8 @@ namespace ZNsMain static TypeData PassData(ZCRef* AP_CRef) { return *reinterpret_cast(AP_CRef); } };/* - template class ZtCCheckRef< ZtCRef* >*/ + template + class ZtCCheckRef< ZtCRef* > ###############################*/ template class ZtCCheckConstRef