使用boost pfr 遍历结构体
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user