From 7c94ff6c30e24461d9acd97209e9a17a9b76314d Mon Sep 17 00:00:00 2001 From: cor3ntin Date: Mon, 14 Jan 2019 18:39:58 +0100 Subject: [PATCH] Reference::ToString should be const (#5118) --- include/flatbuffers/flexbuffers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/flatbuffers/flexbuffers.h b/include/flatbuffers/flexbuffers.h index 2b09ccdeb..51cae532d 100644 --- a/include/flatbuffers/flexbuffers.h +++ b/include/flatbuffers/flexbuffers.h @@ -494,7 +494,7 @@ class Reference { } // Unlike AsString(), this will convert any type to a std::string. - std::string ToString() { + std::string ToString() const { std::string s; ToString(false, false, s); return s;