rttrorg / rttr

C++ Reflection Library
https://www.rttr.org
MIT License
3.17k stars 439 forks source link

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

Open kael0930 opened 3 years ago

kael0930 commented 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

kael0930 commented 3 years ago

help me

kael0930 commented 3 years ago

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