alibaba / yalantinglibs

A collection of modern C++ libraries, include coro_rpc, struct_pack, struct_json, struct_xml, struct_pb, easylog, async_simple
https://alibaba.github.io/yalantinglibs/
Apache License 2.0
1.56k stars 240 forks source link

c++17 supports serialization of std::shared_ptr ? #815

Open bolanbujing opened 1 week ago

bolanbujing commented 1 week ago

std::shared_ptr<int> y = std::make_shared<int>(); auto z = struct_pack::serialize< std::vector<uint8_t>>( y); 这个测试用例,c++17 能编译过, 但是c++20编不过