-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Description
Linux with Clang 10 failed with compile error:
/home/travis/build/chronoxor/CppSerialization/modules/flatbuffers/include/flatbuffers/flatbuffers.h:1848:25: error: definition of implicit copy constructor for 'TableKeyComparator<reflection::EnumVal>' is deprecated because it has a user-declared copy assignment operator [-Werror,-Wdeprecated-copy]
TableKeyComparator &operator=(const TableKeyComparator &);
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/predefined_ops.h:150:40: note: in implicit copy constructor for 'flatbuffers::FlatBufferBuilder::TableKeyComparator<reflection::EnumVal>' first required here
{ return _Iter_comp_iter<_Compare>(_GLIBCXX_MOVE(__comp)); }
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/move.h:159:30: note: expanded from macro '_GLIBCXX_MOVE'
#define _GLIBCXX_MOVE(__val) std::move(__val)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/stl_algo.h:4868:54: note: in instantiation of function template specialization '__gnu_cxx::__ops::__iter_comp_iter<flatbuffers::FlatBufferBuilder::TableKeyComparator<reflection::EnumVal> >' requested here
std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp));
^
/home/travis/build/chronoxor/CppSerialization/modules/flatbuffers/include/flatbuffers/flatbuffers.h:1863:10: note: in instantiation of function template specialization 'std::sort<flatbuffers::Offset<reflection::EnumVal> *, flatbuffers::FlatBufferBuilder::TableKeyComparator<reflection::EnumVal> >' requested here
std::sort(v, v + len, TableKeyComparator<T>(buf_));
^
/home/travis/build/chronoxor/CppSerialization/modules/flatbuffers/include/flatbuffers/flatbuffers.h:1877:12: note: in instantiation of function template specialization 'flatbuffers::FlatBufferBuilder::CreateVectorOfSortedTables<reflection::EnumVal>' requested here
return CreateVectorOfSortedTables(data(*v), v->size());
^
/home/travis/build/chronoxor/CppSerialization/modules/flatbuffers/include/flatbuffers/reflection_generated.h:472:33: note: in instantiation of function template specialization 'flatbuffers::FlatBufferBuilder::CreateVectorOfSortedTables<reflection::EnumVal>' requested here
auto values__ = values ? _fbb.CreateVectorOfSortedTables<reflection::EnumVal>(values) : 0;
^
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels