Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct test_alloc {
using value_type = T;

[[nodiscard]] constexpr T* allocate(std::size_t) { return nullptr; }
void deallocate(void*, unsigned) {}
void deallocate(void*, std::size_t) {}
};

template <class T>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct test_alloc {
using value_type = T;

[[nodiscard]] constexpr T* allocate(std::size_t) { return nullptr; }
void deallocate(void*, unsigned) {}
void deallocate(void*, std::size_t) {}
};

template <class T>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ struct WithNonCopyableIterator : std::ranges::view_base {
iterator(iterator&&);
iterator& operator=(iterator&&);
XYPoint& operator*() const;
iterator operator->() const;
XYPoint* operator->() const;
iterator& operator++();
iterator operator++(int);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ constexpr bool test() {
}

{
std::ranges::repeat_view<int, int> rv(10, std::numeric_limits<int>::max());
assert(rv.size() == std::numeric_limits<int>::max());
constexpr int int_max = std::numeric_limits<int>::max();
std::ranges::repeat_view<int, int> rv(10, int_max);
assert(rv.size() == int_max);
}

return true;
Expand Down