在 'ObjectWrapper::cast' 中出现类型混淆
作者: 2rr0r4o3创建于 2026年8月24日更新于 2026年8月24日
class Base : public oatpp::DTO { DTO_INIT(Base, DTO) DTO_FIELD(String, a); }; class Derived : public Base { DTO_INIT(Derived, Base) DTO_FIELD(String, f0); /* ... f1 .. f9 ... */ };
auto base = Base::createShared(); // heap …
内容来源: oatpp/oatpp