mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 01:53:33 +08:00
Comparison operators for generated types
This commit is contained in:
@@ -55,17 +55,6 @@ struct SubscriptionListener
|
||||
SimpleBinder bindSimple() { return SimpleBinder(this, &SelfType::receiveSimple); }
|
||||
};
|
||||
|
||||
// TODO: add autogenerated comparison operators, then remove this
|
||||
static bool operator==(const uavcan::mavlink::Message& a, const uavcan::mavlink::Message& b)
|
||||
{
|
||||
return
|
||||
a.seq == b.seq &&
|
||||
a.sysid == b.sysid &&
|
||||
a.compid == b.compid &&
|
||||
a.msgid == b.msgid &&
|
||||
a.payload == b.payload;
|
||||
}
|
||||
|
||||
|
||||
TEST(Subscriber, Basic)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user