From 50dd385b30efebe317df2768a6cbb10ff67acf7c Mon Sep 17 00:00:00 2001 From: Atil Kurtulmus Date: Fri, 5 Aug 2022 15:11:00 +0000 Subject: [PATCH] Add missing const (#7401) --- include/flatbuffers/idl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/flatbuffers/idl.h b/include/flatbuffers/idl.h index bb5aad7bd..baf4ae39d 100644 --- a/include/flatbuffers/idl.h +++ b/include/flatbuffers/idl.h @@ -164,7 +164,7 @@ struct Type { enum_def(_ed), fixed_length(_fixed_length) {} - bool operator==(const Type &o) { + bool operator==(const Type &o) const { return base_type == o.base_type && element == o.element && struct_def == o.struct_def && enum_def == o.enum_def; }