FdogSerialize icon indicating copy to clipboard operation
FdogSerialize copied to clipboard

C++ 序列化库(FdogSerialize is a library for serializing between C++ objects (structs, STL containers, etc.) and json strings. FStruct是一个用于C++对象(结构体,STL容器等)和json字符串之间进行序列化的库...

Results 3 FdogSerialize issues
Sort by recently updated
recently updated
newest added

你好,我发现example/testType.h大多都是通过添加F_CLASS(xxx)将其转换成类的形式,只有struct TestType是结构体的形式。 但是在example.cpp中放开下面代码,编译就会报错 ``` c REGISTEREDMEMBER(TestType, age1, age2, age3, age4, age5, age6, age7, age8); ``` 报错内容 >In file included from testType.h:5:0, from example.cpp:14: example.cpp: In function ‘int main()’: ../FStruct.h:2463:1: error:...

![Image](https://github.com/user-attachments/assets/4427b730-54b5-4a89-ba59-0cc97bd92a1c) ``` std::string FdogSerializer::getTypeName(string TypeName) { #ifdef __GNUC__ TypeName = abi::__cxa_demangle(TypeName.c_str(), 0, 0, 0); #elif _MSC_VER if (TypeName.find("struct ") != string::npos && TypeName.find("class std::basic_string