Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C++, flexbuffers] Fixes TypedVector::ElementType() constness. #8281

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fixes TypedVector::ElementType constness.
TypedVector::ElementType function is expected to be const.
  • Loading branch information
guillaumeblanc committed Apr 15, 2024
commit 9d51145620e345538d0cc38fa629882590ddb3db
2 changes: 1 addition & 1 deletion include/flatbuffers/flexbuffers.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ class TypedVector : public Sized {
return data_ == TypedVector::EmptyTypedVector().data_;
}

Type ElementType() { return type_; }
Type ElementType() const { return type_; }

friend Reference;

Expand Down
Loading