Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用谷物序列化为现有协议的简单数据包格式。
然而,谷物在序列化数据前加上可移植类型信息,这是我不想要的。我不需要反序列化多态类型。
有什么办法可以防止麦片写便携类型信息吗?
我发现的唯一方法是为 shared_ptr / unique_ptr 等创建自己的序列化函数。