我想比较两个消息或Google protocol buffers的(两个子参数)。
我找不到实现它的API。
有任何想法吗?
最佳答案
您可以为此使用google::protobuf::util::MessageDifferencer类。我认为只有v3.0.2才可用:
#include <google/protobuf/util/message_differencer.h>
MessageDifferencer::Equals(msg1, msg2);
关于c++ - Google Protocol Buffer 比较,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3228107/