From 50f009b81218c5367031ce9c51089ecddc2e853a Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Tue, 24 Feb 2026 00:11:22 +1100 Subject: Cleanup, better document some areas --- src/timestamp_pool.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/timestamp_pool.cc') diff --git a/src/timestamp_pool.cc b/src/timestamp_pool.cc index 5149747..e8ef9f5 100644 --- a/src/timestamp_pool.cc +++ b/src/timestamp_pool.cc @@ -3,8 +3,8 @@ #include "queue_context.hh" #include -#include #include +#include #include #include @@ -25,8 +25,10 @@ TimestampPool::QueryChunk::QueryChunk(const QueueContext& queue_context) { return qp; }(); - constexpr auto KEY_RANGE = std::views::iota(0u, QueryChunk::CHUNK_SIZE); - this->free_indices = std::make_unique(std::from_range, KEY_RANGE); + this->free_indices = []() { + constexpr auto KEYS = std::views::iota(0u, QueryChunk::CHUNK_SIZE); + return std::make_unique(std::from_range, KEYS); + }(); this->command_buffers = [&, this]() -> auto { auto cbs = std::make_unique>(CHUNK_SIZE); -- cgit v1.2.3