Mark GetBufferMinAlignment() const (#5985)

Like GetBufferPointer() and GetSize(), marks GetBufferMinAlignment function as const
This commit is contained in:
Gleb Mazovetskiy
2020-06-18 19:51:43 +01:00
committed by GitHub
parent 9abb2ec2cc
commit 14baf45c90

View File

@@ -1219,7 +1219,7 @@ class FlatBufferBuilder {
/// you call Finish()). You can use this information if you need to embed
/// a FlatBuffer in some other buffer, such that you can later read it
/// without first having to copy it into its own buffer.
size_t GetBufferMinAlignment() {
size_t GetBufferMinAlignment() const {
Finished();
return minalign_;
}