Skip to content

Commit

Permalink
Update libcxx/multiset
Browse files Browse the repository at this point in the history
  • Loading branch information
morzhovets committed Nov 25, 2023
1 parent 92751be commit c223a68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/sources/libcxx/multiset/max_size.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ int main(int, char**)
LIBCPP_ASSERT(c.max_size() == 10);
}
{
typedef limited_allocator<int, (std::size_t)-1> A;
typedef limited_allocator<int, static_cast<std::size_t>(-1)> A;
typedef std::multiset<int, std::less<int>, A> C;
const C::size_type max_dist =
static_cast<C::size_type>(std::numeric_limits<C::difference_type>::max());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ static_assert(!std::ranges::view<range>);
static_assert(!std::ranges::random_access_range<range>);
static_assert(std::ranges::sized_range<range>);
static_assert(!std::ranges::borrowed_range<range>);
#if !defined(TEST_GCC)
static_assert(std::ranges::viewable_range<range>);
#endif

static_assert(std::same_as<std::ranges::iterator_t<range const>, range::const_iterator>);
static_assert(std::ranges::common_range<range const>);
Expand All @@ -32,7 +34,9 @@ static_assert(!std::ranges::view<range const>);
static_assert(!std::ranges::random_access_range<range const>);
static_assert(std::ranges::sized_range<range const>);
static_assert(!std::ranges::borrowed_range<range const>);
#if !defined(TEST_GCC)
static_assert(!std::ranges::viewable_range<range const>);
#endif

void main()
{
Expand Down

0 comments on commit c223a68

Please sign in to comment.