diff options
author | David Robillard <d@drobilla.net> | 2023-02-03 15:04:36 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-02-03 15:04:36 -0500 |
commit | 71e7e40b84d5efe4b12da22ea16eb842a8cfad39 (patch) | |
tree | 3d940ce3c50d5fda100e064a632c17957d2b1f0d /benchmark | |
parent | 700687d95096208433cf23eb67a02f5b743e4672 (diff) | |
download | chilbert-71e7e40b84d5efe4b12da22ea16eb842a8cfad39.tar.gz chilbert-71e7e40b84d5efe4b12da22ea16eb842a8cfad39.tar.bz2 chilbert-71e7e40b84d5efe4b12da22ea16eb842a8cfad39.zip |
Add missing const qualifiers
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/bench_bitvec.cpp | 2 | ||||
-rw-r--r-- | benchmark/bench_hilbert.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/bench_bitvec.cpp b/benchmark/bench_bitvec.cpp index 433274c..0eed895 100644 --- a/benchmark/bench_bitvec.cpp +++ b/benchmark/bench_bitvec.cpp @@ -243,7 +243,7 @@ template<template<class U, size_t M> class Bench, size_t N> void bench_row(Context& ctx, std::ostream& os) { - std::array<Duration, 4> results = { + const std::array<Duration, 4> results = { ((N <= chilbert::SmallBitVec::bits_per_rack) ? Bench<chilbert::SmallBitVec, N>{}(ctx) : Duration{}), diff --git a/benchmark/bench_hilbert.cpp b/benchmark/bench_hilbert.cpp index 6973fa3..b8cd9d6 100644 --- a/benchmark/bench_hilbert.cpp +++ b/benchmark/bench_hilbert.cpp @@ -42,7 +42,7 @@ template<template<class H, size_t M, size_t D> class Bench, size_t M, size_t D> void bench_row(Context& ctx, std::ostream& os) { - std::array<Duration, 4> results = { + const std::array<Duration, 4> results = { ((M * D <= chilbert::SmallBitVec::bits_per_rack) ? Bench<chilbert::SmallBitVec, M, D>{}(ctx) : Duration{}), |