mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-22 17:18:52 +00:00
Fix operator==() generated for field of fixed sized array (#7749)
* Fix operator==() generated for field of fixed sized array * Compare address * noexcept * Grammer Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
@@ -88,7 +88,7 @@ FLATBUFFERS_STRUCT_END(Baz, 5);
|
||||
|
||||
inline bool operator==(const Baz &lhs, const Baz &rhs) {
|
||||
return
|
||||
(lhs.a() == rhs.a()) &&
|
||||
(*lhs.a() == *rhs.a()) &&
|
||||
(lhs.b() == rhs.b());
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ FLATBUFFERS_STRUCT_END(Bar, 16);
|
||||
|
||||
inline bool operator==(const Bar &lhs, const Bar &rhs) {
|
||||
return
|
||||
(lhs.a() == rhs.a()) &&
|
||||
(*lhs.a() == *rhs.a()) &&
|
||||
(lhs.b() == rhs.b());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user