diff options
author | David Robillard <d@drobilla.net> | 2022-09-16 21:54:26 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-09-16 22:31:06 -0400 |
commit | a1572052fb6e04107f4beb07662aa20cacbc5533 (patch) | |
tree | 2f2f3def60fc249724680e7e5ee69062004e1d66 /include | |
parent | e2f9d0e2bcacdedc6669b4e5cbeaac7692910091 (diff) | |
download | chilbert-a1572052fb6e04107f4beb07662aa20cacbc5533.tar.gz chilbert-a1572052fb6e04107f4beb07662aa20cacbc5533.tar.bz2 chilbert-a1572052fb6e04107f4beb07662aa20cacbc5533.zip |
Make constant method static and constexpr
Diffstat (limited to 'include')
-rw-r--r-- | include/chilbert/SmallBitVec.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 BitVec> class iterator_base |