Fixed error for test_allocator::max_size(), now returns std::size_t(-1)

[SVN r85998]
This commit is contained in:
Ion Gaztañaga
2013-09-29 11:38:47 +00:00
parent 3921e08520
commit 232e18956a

View File

@@ -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)]; }