rttr icon indicating copy to clipboard operation
rttr copied to clipboard

how to deserialization std::vector<a pointer or shared_ptr type>

Open kael0930 opened this issue 4 years ago • 2 comments

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

kael0930 avatar Oct 07 '21 12:10 kael0930

help me

kael0930 avatar Oct 09 '21 10:10 kael0930

How to deserialize an array containing pointers ,such as std::vector<point2d*> points from json file

kael0930 avatar Oct 10 '21 01:10 kael0930