[C++] Fix a -Wdeprecated-copy warning. (#6708)

* Fix incorrect assertion usage.

* Fix a -Wdeprecated-copy warning.

Bug: chromium:1221591

* Just remove constructors/assignment
This commit is contained in:
pkasting
2021-06-26 19:50:12 -07:00
committed by GitHub
parent a6ee335574
commit bd37e67ac0

View File

@@ -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