ExcaliburHash
ExcaliburHash copied to clipboard
Issue building with gcc13
Hello, there is a build failure when using gcc13.
[ 58%] Building CXX object CMakeFiles/ExcaliburHashTest.dir/ExcaliburHashTest03.cpp.o
/home/micwoj92/pkg/ExcaliburHash/ExcaliburHashTest03.cpp: In member function ‘virtual void SmFlatHashMap_MoveEdgeCases_Test::TestBody()’:
/home/micwoj92/pkg/ExcaliburHash/ExcaliburHashTest03.cpp:488:16: error: moving ‘htHuge’ of type ‘Excalibur::HashTable<int, int>’ to itself [-Werror=self-move]
488 | htHuge = std::move(*&htHuge);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/micwoj92/pkg/ExcaliburHash/ExcaliburHashTest03.cpp:488:16: note: remove ‘std::move’ call
cc1plus: all warnings being treated as errors
This is due to this -Wself-move
warning being added https://gcc.gnu.org/PR81159