Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / circular_buffer / test / common.ipp
index 1626174..6921554 100644 (file)
@@ -236,6 +236,9 @@ public:
    void destroy(value_type* ptr)
    {  ptr->~value_type();  }
 
+   size_type max_size() const {
+      return ~static_cast<size_type>(0) / sizeof(size_type);
+   }
 };
 
 void allocator_test() {