Commit 8d53f4c9 authored by Carsten Gräser's avatar Carsten Gräser Committed by Steffen Müthing

Make ReservedVector::max_size() and ::capacity() constexpr

(cherry picked from commit 49879f16)
Signed-off-by: Steffen Müthing's avatarSteffen Müthing <muething@dune-project.org>
parent e2afbbf1
......@@ -182,13 +182,13 @@ namespace Dune
}
//! Returns current capacity (allocated memory) of the vector.
static size_type capacity()
static DUNE_CONSTEXPR size_type capacity()
{
return n;
}
//! Returns the maximum length of the vector.
static size_type max_size()
static DUNE_CONSTEXPR size_type max_size()
{
return n;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment