使用boost pfr 遍历结构体

This commit is contained in:
2026-06-26 09:36:14 +08:00
parent 26b5c8a54d
commit 472e609f13
17 changed files with 1322 additions and 1622 deletions
+1 -4
View File
@@ -108,10 +108,7 @@ void read(MLAT_Data *buf, std::uint16_t *len) {
MLAT_Config::MLAT_Config() {}
void MLAT_Config::init(const Psc::JSON *that_json) {
enable = that_json->get_bool("enable");
merge = that_json->get_bool("merge");
library_path = that_json->get_string("library_path");
function_name = that_json->get_string("function_name");
MLAT_Config_Data::from_base_json(that_json);
if (enable) {
{
auto r = Psc::try_load_library(Psc::get_abs_path(library_path));