util/StringBuffer: make capacity() static

This allows using it in constant expressions.
This commit is contained in:
Max Kellermann
2021-03-25 17:37:03 +01:00
committed by Max Kellermann
parent e01710cbd1
commit ca726a0110

View File

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