mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-03 08:46:19 +08:00
@@ -1,9 +1,6 @@
|
||||
#include "test_map.hpp"
|
||||
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
#include <rfl.hpp>
|
||||
#include <rfl/json.hpp>
|
||||
#include <source_location>
|
||||
#include <string>
|
||||
|
||||
@@ -17,9 +14,7 @@ struct Person {
|
||||
std::map<std::string, Person> children;
|
||||
};
|
||||
|
||||
void test() {
|
||||
std::cout << std::source_location::current().function_name() << std::endl;
|
||||
|
||||
TEST(xml, test_map) {
|
||||
auto children = std::map<std::string, Person>();
|
||||
children.insert(std::make_pair("child1", Person{.first_name = "Bart"}));
|
||||
children.insert(std::make_pair("child2", Person{.first_name = "Lisa"}));
|
||||
|
||||
Reference in New Issue
Block a user