match ptrdiff_t
parent
2b375fc8f3
commit
1830a3936b
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required(VERSION 3.20)
|
cmake_minimum_required(VERSION 3.20)
|
||||||
include(cmake/color.cmake)
|
include(cmake/color.cmake)
|
||||||
set(BLT_VERSION 1.0.5)
|
set(BLT_VERSION 1.0.6)
|
||||||
|
|
||||||
set(BLT_TARGET BLT)
|
set(BLT_TARGET BLT)
|
||||||
|
|
||||||
|
|
|
@ -254,7 +254,7 @@ namespace blt
|
||||||
if constexpr (check)
|
if constexpr (check)
|
||||||
{
|
{
|
||||||
return Derived{get_base(begin),
|
return Derived{get_base(begin),
|
||||||
get_base(begin + std::min(static_cast<blt::size_t>(n), std::distance(begin, end)))};
|
get_base(begin + std::min(static_cast<blt::ptrdiff_t>(n), std::distance(begin, end)))};
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
return Derived{get_base(begin), get_base(begin + n)};
|
return Derived{get_base(begin), get_base(begin + n)};
|
||||||
|
@ -285,7 +285,7 @@ namespace blt
|
||||||
{
|
{
|
||||||
if constexpr (check)
|
if constexpr (check)
|
||||||
{
|
{
|
||||||
return Derived{begin + std::min(static_cast<blt::size_t>(n), std::distance(begin, end))};
|
return Derived{begin + std::min(static_cast<blt::ptrdiff_t>(n), std::distance(begin, end))};
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
return Derived{begin + n, end};
|
return Derived{begin + n, end};
|
||||||
|
|
Loading…
Reference in New Issue