Skip to content

Commit 7905ce8

Browse files
committed
Don't convert out of bounded::integer just to convert right back
1 parent 29c0a13 commit 7905ce8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/containers/algorithms/sort/chunked_insertion_sort.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ constexpr auto chunked_insertion_sort(range auto && r, Compare const compare = C
7474
);
7575
it += initial_sort_size;
7676
#endif
77-
auto buffer = containers::uninitialized_array<std::remove_reference_t<decltype(*it)>, chunk_size.value()>();
77+
auto buffer = containers::uninitialized_array<std::remove_reference_t<decltype(*it)>, chunk_size>();
7878
while (it != last) {
7979
auto const count = bounded::min(chunk_size, last - it);
8080
auto next_it = ::containers::runtime_sort_exactly_n_relocate(it, count, buffer.data(), compare);

0 commit comments

Comments
 (0)