Open kael0930 opened 3 years ago
struct circle : shape { circle(std::string n) : shape(n) {}
double radius = 5.2; //std::vector<point2d> points; std::vector<point2d*> points;
} If the std::vector points type becomes a pointer std::vector<point2d*> points, deserialization seems unsuccessful
help me
How to deserialize an array containing pointers ,such as std::vector<point2d*> points from json file
struct circle : shape { circle(std::string n) : shape(n) {}
} If the std::vector points type becomes a pointer std::vector<point2d*> points, deserialization seems unsuccessful