From 8efea5cc401f68458a925ac015314678a4019ed1 Mon Sep 17 00:00:00 2001 From: Joshua Saxby <joshua.a.saxby@gmail.com> Date: Wed, 4 Mar 2020 14:51:01 +0000 Subject: [PATCH] Sure let's make capacity() both constexpr and const --- source/CircularQueueBuffer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/CircularQueueBuffer.hpp b/source/CircularQueueBuffer.hpp index 349b336..c2e5efc 100644 --- a/source/CircularQueueBuffer.hpp +++ b/source/CircularQueueBuffer.hpp @@ -72,7 +72,7 @@ namespace com_saxbophone { /** * @returns the total capacity of this buffer */ - constexpr size_t capacity() { + constexpr size_t capacity() const { return BUFFER_SIZE; } -- GitLab