[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

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