mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-03 00:26:19 +08:00
@@ -6,7 +6,6 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "test_unique_ptr.hpp"
|
||||
#include "write_and_read.hpp"
|
||||
|
||||
namespace test_shared_ptr {
|
||||
@@ -17,9 +16,7 @@ struct Person {
|
||||
std::shared_ptr<std::vector<Person>> children;
|
||||
};
|
||||
|
||||
void test() {
|
||||
std::cout << std::source_location::current().function_name() << std::endl;
|
||||
|
||||
TEST(json, test_shared_ptr) {
|
||||
auto children = std::make_shared<std::vector<Person>>();
|
||||
children->emplace_back(Person{.first_name = "Bart"});
|
||||
children->emplace_back(Person{.first_name = "Lisa"});
|
||||
|
||||
Reference in New Issue
Block a user