1

上下文:我在编译现有(大)代码时遇到了这个断言:

/usr/include/cereal/cereal.hpp:833:9: error: static assertion failed: cereal found more than one compatible input serialization function for the provided type and archive combination.

Types must either have a serialize function, load/save pair, or load_minimal/save_minimal pair (you may not mix these).
Use specialization (see access.hpp) if you need to disambiguate between serialize vs load/save functions.
Note that serialization functions can be inherited which may lead to the aforementioned ambiguities.
In addition, you may not mix versioned with non-versioned serialization functions.

           static_assert(traits::detail::count_input_serializers<T, ArchiveType>::value < 2,
           ^~~~~~~~~~~~~

阅读文档后,我对加载/保存函数进行了grep,但只找到了序列化函数,所以看起来这不是将加载/保存与序列化函数混合的情况。

有没有办法列出所有触发该断言的函数(或任何其他可能帮助我找到问题的方法)?


4

0 回答 0