flatbuffers/tests/evolution_test
Arthur O'Dwyer 6b271b7ecb
Fix Clang-trunk warnings about special members deprecated in C++20. (#5829)
For example:

    include/flatbuffers/reflection.h:365:8: error: definition of implicit copy
          constructor for 'pointer_inside_vector<flatbuffers::Table, unsigned char>'
          is deprecated because it has a user-declared copy assignment operator
          [-Werror,-Wdeprecated-copy]
      void operator=(const pointer_inside_vector &piv);
           ^

It's unclear why the old code wanted to declare a public `operator=`
without defining it; that just seems like a misunderstanding of the C++03 idiom
for deleting a member function. And anyway, we don't *want* to delete the
assignment operator; these are polymorphic types that do not follow value
semantics and nobody should ever be trying to copy them. So the simplest fix
is just to go back to the Rule of Zero: remove the declaration of `operator=`
and let the compiler do what it wanted to do originally anyway.
"The best code is no code."

Also, update the generated .h files.

Fixes #5649.
2020-03-23 10:01:11 -07:00
..
evolution_v1.fbs [C++] Adds basic schema evolution tests (#5611) 2019-11-14 15:44:18 -08:00
evolution_v1.json [C++] Adds basic schema evolution tests (#5611) 2019-11-14 15:44:18 -08:00
evolution_v1_generated.h Fix Clang-trunk warnings about special members deprecated in C++20. (#5829) 2020-03-23 10:01:11 -07:00
evolution_v2.fbs [C++] Adds basic schema evolution tests (#5611) 2019-11-14 15:44:18 -08:00
evolution_v2.json [C++] Adds basic schema evolution tests (#5611) 2019-11-14 15:44:18 -08:00
evolution_v2_generated.h Fix Clang-trunk warnings about special members deprecated in C++20. (#5829) 2020-03-23 10:01:11 -07:00