File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ struct MinSequenceContainer {
31
31
const_iterator cbegin () const { return const_iterator (data_.data ()); }
32
32
iterator end () { return begin () + size (); }
33
33
const_iterator end () const { return begin () + size (); }
34
- size_type size () const { return data_.size (); }
34
+ size_type size () const { return static_cast <size_type>( data_.size () ); }
35
35
bool empty () const { return data_.empty (); }
36
36
37
37
void clear () { data_.clear (); }
Original file line number Diff line number Diff line change @@ -394,12 +394,12 @@ class min_allocator
394
394
template <class U >
395
395
TEST_CONSTEXPR_CXX20 min_allocator (min_allocator<U>) {}
396
396
397
- TEST_CONSTEXPR_CXX20 pointer allocate (std::ptrdiff_t n)
397
+ TEST_CONSTEXPR_CXX20 pointer allocate (std::size_t n)
398
398
{
399
399
return pointer (std::allocator<T>().allocate (n));
400
400
}
401
401
402
- TEST_CONSTEXPR_CXX20 void deallocate (pointer p, std::ptrdiff_t n)
402
+ TEST_CONSTEXPR_CXX20 void deallocate (pointer p, std::size_t n)
403
403
{
404
404
std::allocator<T>().deallocate (p.ptr_ , n);
405
405
}
You can’t perform that action at this time.
0 commit comments