mirror of
https://github.com/boostorg/container.git
synced 2025-08-01 21:44:27 +02:00
Fixed error for test_allocator::max_size(), now returns std::size_t(-1)
[SVN r85998]
This commit is contained in:
@@ -68,7 +68,7 @@ class test_allocator
|
||||
}
|
||||
|
||||
std::size_t max_size() const
|
||||
{ return std::size_t(Id); }
|
||||
{ return std::size_t(-1); }
|
||||
|
||||
T* allocate(std::size_t n)
|
||||
{ return (T*)::new char[n*sizeof(T)]; }
|
||||
|
Reference in New Issue
Block a user