Comparison operators for generated types

This commit is contained in:
Pavel Kirienko
2014-03-09 21:28:46 +04:00
parent ee1de9ab2e
commit 0aa76d71e3
3 changed files with 32 additions and 11 deletions
-11
View File
@@ -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)
{