Fix usages of constexpr (#367)

* Fix usages of constexpr
This commit is contained in:
János Benjamin Antal
2022-03-31 13:52:43 +02:00
committed by GitHub
parent 5822b44b15
commit 537855a0b2
75 changed files with 372 additions and 365 deletions

View File

@@ -20,8 +20,8 @@
using namespace std::chrono_literals;
TEST(ThreadPool, Basic) {
constexpr size_t adder_count = 500000;
constexpr std::array<size_t, 5> pool_sizes{1, 2, 4, 8, 100};
static constexpr size_t adder_count = 500000;
static constexpr std::array<size_t, 5> pool_sizes{1, 2, 4, 8, 100};
for (const auto pool_size : pool_sizes) {
memgraph::utils::ThreadPool pool{pool_size};