From a1572052fb6e04107f4beb07662aa20cacbc5533 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 16 Sep 2022 21:54:26 -0400 Subject: Make constant method static and constexpr --- include/chilbert/SmallBitVec.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/chilbert') diff --git a/include/chilbert/SmallBitVec.hpp b/include/chilbert/SmallBitVec.hpp index bd54855..37854d3 100644 --- a/include/chilbert/SmallBitVec.hpp +++ b/include/chilbert/SmallBitVec.hpp @@ -244,7 +244,7 @@ public: const Rack* data() const { return &m_rack; } /// Return the number of racks - size_t num_racks() const { return 1; } + static constexpr size_t num_racks() { return 1U; } template class iterator_base -- cgit v1.2.1