Commit ca726a01 authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

util/StringBuffer: make capacity() static

This allows using it in constant expressions.
parent e01710cb
......@@ -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;
}
......
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