使用boost pfr 遍历结构体

This commit is contained in:
2026-06-26 09:36:15 +08:00
parent acc1b7003d
commit fd6097564c
142 changed files with 13775 additions and 410 deletions
+9
View File
@@ -309,6 +309,15 @@ JSON &JSON::operator=(JSON &&other) noexcept {
}
return *this;
}
JSON& JSON::operator+=(const JSON& child) {
append_list(child.children);
return *this;
}
JSON& JSON::operator+=(JSON&& child) {
append_list(child.children);
return *this;
}
// 解析的分割线----------------------------
// 如果未找到非空白字符,将 i 更新为 std::string::npos