Fixed Trac #11957: "static_vector::max_size() is higher than the capacity"

This commit is contained in:
Ion Gaztañaga
2016-02-24 14:45:44 +01:00
parent a7158c7975
commit 310d8eaf10
3 changed files with 6 additions and 0 deletions
@@ -58,6 +58,9 @@ class static_storage_allocator
static const std::size_t internal_capacity = N;
std::size_t max_size() const
{ return N; }
typedef boost::container::container_detail::version_type<static_storage_allocator, 0> version;
BOOST_CONTAINER_FORCEINLINE friend bool operator==(const static_storage_allocator &, const static_storage_allocator &) BOOST_NOEXCEPT_OR_NOTHROW