diff --git a/source/simple/support/algorithm.hpp b/source/simple/support/algorithm.hpp index fc688597c8701ee5e63a463f7eae554f53d4aec9..f905ca527439cf6464c1cb524ec83749232b404e 100644 --- a/source/simple/support/algorithm.hpp +++ b/source/simple/support/algorithm.hpp @@ -220,7 +220,7 @@ namespace simple::support template<typename It> [[nodiscard]] constexpr - auto distance(const range<It>& rng, It origin) + auto distance(const range<It>& rng, const It& origin) { using std::begin; using std::end;