From bd37e67ac0b934bc4239a034901dcdf88e594053 Mon Sep 17 00:00:00 2001 From: pkasting Date: Sat, 26 Jun 2021 19:50:12 -0700 Subject: [PATCH] [C++] Fix a -Wdeprecated-copy warning. (#6708) * Fix incorrect assertion usage. * Fix a -Wdeprecated-copy warning. Bug: chromium:1221591 * Just remove constructors/assignment --- include/flatbuffers/flatbuffers.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/flatbuffers/flatbuffers.h b/include/flatbuffers/flatbuffers.h index 1306bb33b..2537d7e29 100644 --- a/include/flatbuffers/flatbuffers.h +++ b/include/flatbuffers/flatbuffers.h @@ -1970,9 +1970,6 @@ class FlatBufferBuilder { bool operator()(const T &a, const T &b) const { return a.KeyCompareLessThan(&b); } - - FLATBUFFERS_DELETE_FUNC( - StructKeyComparator &operator=(const StructKeyComparator &)); }; /// @endcond