diff --git a/CMakeLists.txt b/CMakeLists.txt index 5cd6c1f..6336797 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.20) include(cmake/color.cmake) -set(BLT_VERSION 1.0.5) +set(BLT_VERSION 1.0.6) set(BLT_TARGET BLT) diff --git a/include/blt/iterator/zip.h b/include/blt/iterator/zip.h index a75ff8e..b4e6efb 100644 --- a/include/blt/iterator/zip.h +++ b/include/blt/iterator/zip.h @@ -254,7 +254,7 @@ namespace blt if constexpr (check) { return Derived{get_base(begin), - get_base(begin + std::min(static_cast(n), std::distance(begin, end)))}; + get_base(begin + std::min(static_cast(n), std::distance(begin, end)))}; } else { return Derived{get_base(begin), get_base(begin + n)}; @@ -285,7 +285,7 @@ namespace blt { if constexpr (check) { - return Derived{begin + std::min(static_cast(n), std::distance(begin, end))}; + return Derived{begin + std::min(static_cast(n), std::distance(begin, end))}; } else { return Derived{begin + n, end};