Morwenn / cpp-sort

Sorting algorithms & related tools for C++14
MIT License
617 stars 57 forks source link

iter_move/iter_swap seems to be broken in C++20 #206

Closed Morwenn closed 2 years ago

Morwenn commented 2 years ago

Not really a surprise considering all the ADL shenanigans going on and the C++20 additions, but now we've got tough issues to fix. The problem is evidenced when trying to compile the test schwartz_adapter_every_sorter_reversed where std::reverse_iterator overloads of iter_swap become ambiguous.

Interestingly the issue wasn't introduced with the latest change to iter_move/iter_swap in cpp-sort, but also occurs with the old model.