Implemented some measures to reduce the compile time; #86 (#120)

This commit is contained in:
Dr. Patrick Urbanke (劉自成)
2024-06-15 00:26:05 +02:00
committed by GitHub
parent 41872c48e4
commit e36994084d
17 changed files with 629 additions and 571 deletions
+4 -1
View File
@@ -12,13 +12,16 @@ struct Test1 {
std::vector<std::string> classes[3];
};
TEST(json, test_c_array_class1) {
TEST(json, test_inheritance2) {
#ifdef REFLECT_CPP_C_ARRAYS_OR_INHERITANCE
Test1 test1 = {.classes = {{"Little A", "Little B", "Little C"},
{"BIG A", "BIG B", "BIG C"},
{"??", "$%", "#@"}}};
write_and_read(
test1,
R"({"classes":[["Little A","Little B","Little C"],["BIG A","BIG B","BIG C"],["??","$%","#@"]]})");
#endif
}
} // namespace test_c_array_class1