util/StringBuffer: make capacity() static
This allows using it in constant expressions.
This commit is contained in:
parent
e01710cbd1
commit
ca726a0110
@ -53,7 +53,7 @@ protected:
|
||||
public:
|
||||
using const_iterator = typename Array::const_iterator;
|
||||
|
||||
constexpr size_type capacity() const noexcept {
|
||||
static constexpr size_type capacity() noexcept {
|
||||
return CAPACITY;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user