From 9f9e4607eecc6866e38cd4d6f3347428ce6e6bbd Mon Sep 17 00:00:00 2001 From: Minye Zhang Date: Tue, 14 Oct 2025 11:26:10 +0200 Subject: [PATCH 1/2] fix wrong placed endif --- include/Comm/global/Global_Func.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Comm/global/Global_Func.hpp b/include/Comm/global/Global_Func.hpp index dbd3d17..fd2b769 100644 --- a/include/Comm/global/Global_Func.hpp +++ b/include/Comm/global/Global_Func.hpp @@ -57,8 +57,8 @@ namespace Global_Func } } throw std::runtime_error("read /proc/meminfo error in " + std::string(__FILE__) + " line " + std::to_string(__LINE__)); -#endif } +#endif } } \ No newline at end of file From 2335351da1f5c97d34dcaa680ee75dd6461bdeb7 Mon Sep 17 00:00:00 2001 From: Minye Zhang Date: Tue, 14 Oct 2025 11:27:32 +0200 Subject: [PATCH 2/2] add cstddef header for size_t --- include/Comm/global/Global_Func.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/Comm/global/Global_Func.h b/include/Comm/global/Global_Func.h index 91685f4..a1ef138 100644 --- a/include/Comm/global/Global_Func.h +++ b/include/Comm/global/Global_Func.h @@ -5,6 +5,8 @@ #pragma once +#include + namespace Comm {