bool m_value; //bool类型 document.AddMember("m_value", m_value, allocator); if (doc.HasMember("m_value")) { rapidjson::Value &val_m_value = doc["m_value"]; if (val_m_value.IsBool()) { p->m_value = val_m_value.GetBool(); } }
Copyright © 2024 yacbo Powered by .NET 8.0 on Kubernetes