ericniebler / range-v3

Range library for C++14/17/20, basis for C++20's std::ranges
Other
4.11k stars 440 forks source link

[FIX] circular swap concept #1676

Closed eseiler closed 2 years ago

eseiler commented 2 years ago

Fixes https://github.com/ericniebler/range-v3/issues/1672

I'm not too sure about whether the replacement is correct (CI seems OK).

Type is ranges::any, and we check for swappable. In the end, we want to use the any constructor with copyable restriction.

copyable requires movable, and movable requires swappable