From fb03f78fb4ef2123425a38d93df2e9818a15739b Mon Sep 17 00:00:00 2001 From: Per Eckerdal Date: Wed, 19 Apr 2017 17:56:55 +0200 Subject: [PATCH] Fix minor const correctness issue (#4271) --- include/flatbuffers/flatbuffers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/flatbuffers/flatbuffers.h b/include/flatbuffers/flatbuffers.h index 0a553a0c0..aa9cf4fca 100644 --- a/include/flatbuffers/flatbuffers.h +++ b/include/flatbuffers/flatbuffers.h @@ -327,7 +327,7 @@ public: return temp; } - VectorIterator operator+(const uoffset_t &offset) { + VectorIterator operator+(const uoffset_t &offset) const { return VectorIterator(data_ + offset * IndirectHelper::element_stride, 0); }